javascript FRAME contentWindow
@June 30, 2008, 12:49 p.m.
contentWindow | Firefox/Netscape/NN 7 IE 5.5(Win) Chrome/Safari/DOM n/a |
|
Read-only |
Returns a reference to the window object generated by the frame element. Through that window object, you can access the document object and then any one of the document's elements. For Netscape 6, use the contentDocument property to jump from frame element object to its content. But if you are trying to reach script variables or functions in the frame, the contentWindow (or W3C DOM-friendly and Netscape 6-compatible contentDocument.defaultView) provides access to the script context. |
|
Example | |
var frameElem = parent.document.getElementById("myFrame"); var win = frameElem.contentWindow; |
|
Value | |
Reference to a window node. |
|
Default | |
Current window node. |
Permanent URL:
http://javascript.gakaa.com/frame-contentwindow.aspx
Powered by Linode.