Mega Code Archive

 
Categories / JavaScript Tutorial / HTML Tags
 

Image height

The height property of the Image object specifies the height of the image in pixels. This property can only be set by the HEIGHT attribute of the tag. <html>     <head>     <title>Example of height property</title>     </head>     <img name="circle"          src="http://www.rntsoft.com/style/logo.png"          height=200>     <br>     <script language="JavaScript">     <!--     document.write(document.circle.height, " pixels.");     -->     </script>     </html>