Javascript Reference
Categories: FRAME

javascript FRAME name

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

Read/Write  

This is the identifier associated with a frame for use as the value assigned to target attributes or as script references to the frame. The value is usually assigned via the name attribute, but it can be modified by script if necessary.

 
Example
 
parent.document.getElementById("myFrame").name = "results";
 
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.

No for target you must use contentWindow.name

parent.document.getElementsByTagName("FRAME")[1].contentWindow.name = 'xxx'
Rob - 2012-09-05

Powered by Linode.