javascript IFRAME contentWindow

contentWindow NN 7 IE 5.5(Win) DOM n/a  

 

Read-only  

Returns a reference to the window object generated by the iframe element. Through the 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 iframe element object to its content. 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 iframeElem = parent.document.getElementById("myIframe");
var win = iframeElem.contentWindow;
 
Value

Reference to a window node.

 
Default

Current window node.


  • S aus B
    #1
    2009-10-28
    [Quote]
    helped - thx
945,Nickname,Homepage or email,Comments here,Add comment