Image width Example : Image Img : HTML JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » HTML » Image Img »

 

Image width Example



    
<html>
<body>
<script language="JavaScript">
    function function1() {
        alert(document.getElementById("myImage").width);
    }
</script>
<img id="myImage" 
     src="http://www.navioo.com/style/logo.png" 
     alt="http://www.navioo.com" 
     width="300" 
     height="300">
<input type="button" value="Image width" onclick="function1();">
</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