Javascript Reference
Categories: window

javascript window name

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


This is the identifier associated with a frame or subwindow for use as the value assigned to target attributes or as script references to the frame/subwindow. For a frame, the value is usually assigned via the name attribute of the frame tag, but it can be modified by a script if necessary. The name of a subwindow is assigned as a parameter to the ) method. The primary browser window does not have a name by default, but you can assign one via script if you need a subwindow to target a link or form back to the main window.

if (parent.frames[1].name == "main") {

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.



Powered by Linode.