Mega Code Archive

 
Categories / JavaScript Tutorial / HTML Tags
 

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.rntsoft.com/style/logo.png"          width=150>     <br>     <script language="JavaScript">     <!--     document.write(document.circle.width, " pixels.");     -->     </script>     </html>