Javascript Reference
Categories: IMG

javascript IMG name

@March 15, 2008, 1:22 a.m.
nameFirefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  

Read/Write  

This is the identifier associated with the image object for use in scripted references to the object.

 
Example
 
var imgName = document.images[3].name;
 
Value

Case-sensitive string identifier that follows the rules of identifier naming: it may contain no whitespace, cannot begin with a numeral, and should avoid punctuation except for the underscore character.

 
Default

None.


Powered by Linode.