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