August 1999
Intermediate to advanced
1488 pages
72h 53m
English
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 <img> tag.
Listing 7.305 displays the value of the height property.
<html>
<head>
<title>Example of height property</title>
</head>
<img name="circle"
src="circle.gif"
height=200>
<br>
<script LANGUAGE=language="JavaScript">
<!-- Hide
//Display height of image
document.write("The height of the image is ");
document.write(document.circle.height, " pixels.");
//Hide End --->
</script>
</html>
|
Read now
Unlock full access