Javascript Reference
Categories: FRAME

javascript FRAME contentDocument

@March 25, 2009, 3:37 a.m.
contentDocument Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2  

 

Read-only  

Returns a reference to the document object loaded into the frame element object. Through that document object, you can access one of the document's elements via the getElementById( ) method, or access the containing window object via the document's defaultView property. For IE/Windows, use the contentWindow property to jump from frame element object to its content.

 
Example
 
var frameElem = parent.document.getElementById("myFrame");
var doc = frameElem.contentDocument;
 
Value

Reference to a document node.

 
Default

Current document node.


Powered by Linode.