Change image : Image Img : HTML JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » HTML » Image Img »

 

Change image



<html>
<head>
<script type="text/javascript">
function setSrc(){
    var x=document.images
    x[0].src="http://www.navioo.com/style/logoRed.png"
}
</script>
</head>

<body>
<img src="http://www.navioo.com/style/logo.png" width="107" height="98" />
<form>
<input type="button" onclick="setSrc()" value="Change image">
</form>
</body>

</html>




           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo HTML
» Image Img