javascript FRAMESET Description
frameset | Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1 | ||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
The frameset object reflects the frameset element. Be sure to distinguish the difference between the frameset element object (described here) and the window object that a frameset makes possible. Properties and methods of a frameset element object tend to reflect the aspects associated with the HTML element and its attributes. The content of the frameset element is a window (a view in the W3C DOM terminology), which has been scriptable from the beginning, and contains a document (although with no renderable elements beyond the nested frame elements). Reference a frameset element object via its ID. For example, from a script residing in one frame's document, reach the frameset element object via: parent.document.getElementById("myFrameset") |
|||||||||||||||||||||||||||||||||||
But to reach the frameset's window (and thus access its scripts and document), the reference from the same script would be either of the following: parent top |
|||||||||||||||||||||||||||||||||||
If a script is processing a reference to the frameset element object, you can jump the fence between the element object and its content via the ownerDocument property of the element. |
|||||||||||||||||||||||||||||||||||
Be aware that references to frameset objects shown in this section may not work properly in the Windows 95 version of Internet Explorer 4. Also, the windowRef placeholder may be filled with parent or top if the reference is in a script contained by a child frame. |
|||||||||||||||||||||||||||||||||||
HTML Equivalent | |||||||||||||||||||||||||||||||||||
<frameset> |
|||||||||||||||||||||||||||||||||||
Object Model Reference | |||||||||||||||||||||||||||||||||||
[windowRef.]document.getElementById("framesetID") |
|||||||||||||||||||||||||||||||||||
Object-Specific Properties | |||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
Object-Specific Methods | |||||||||||||||||||||||||||||||||||
None. |
|||||||||||||||||||||||||||||||||||
Object-Specific Event Handler Properties | |||||||||||||||||||||||||||||||||||
|
Powered by Linode.