Monday, February 17, 2014

How to load Image Using javascript using onclick Even

<html>
<head>
<title>How to load Image Using javascript using onclick Even</title>
<script>
function loadimage(){
document.getElementById('loading').innerHTML="<img src='path of images' width='300' height='400'>";
}
</script>
</head>
<body>
<div id="loading">
</div>
<button onclick='javascript:loadimage()'> Load Image</button>
</body>

<./html>