Javascript Reference
Categories: layer

javascript layer name

@March 15, 2008, 1:22 a.m.
nameNN |4| IE n/a Chrome/Safari/DOM n/a  

Read-only  

This is the identifier associated with a layer for use as the value assigned to target attributes or as script references to the frame. If no value is explicitly assigned to the id attribute, Navigator automatically assigns the name attribute value to the id attribute.

 
Example
 
if (document.layers[2].name == "main") {
    ...
}
 
Value

Case-sensitive 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.