August 1999
Intermediate to advanced
1488 pages
72h 53m
English
image.name
The name property of the Image object specifies the name of the image. This property can only be set by the NAME attribute of the <img> tag.
Listing 7.308 displays the name of the image.
<html>
<head>
<title>Example of name property</title>
</head>
<img name="circle" src="circle.gif">
<br>
<script language="JavaScript">
<!-- Hide
//Display name of image
document.write("The name of the image is <i>");
document.write(document.circle.name,"</i>");
//Hide End --->
</script>
</html>
|
Read now
Unlock full access