Image.width : img : HTML Tags JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » HTML Tags » img »

 

Image.width








The width property specifies the width of the image in pixels.

This property can only be set by the WIDTH attribute of the tag.












<html>
    <head>
    <title>Example of width property</title>
    </head>
    <img name="circle"
         src="http://www.navioo.com/style/logo.png"
         width=150>
    <br>
    <script language="JavaScript">
    <!--
    document.write(document.circle.width, " pixels.");
    -->
    </script>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo HTML Tags
» img