TOC PREV NEXT INDEX

domref



contentDocument


The contentDocument property returns the document the frame contains, if any.

Syntax

document = iFrameElement.contentDocument
 

Parameters

document is an object reference to the document contained in the given frame.

Example

i= document.getElementById("my-iframe");
 
if (i.contentDocument ) {
 
   src_doc = i.contentDocument;
 
   working_title = src_doc.title;
 
}
 

Notes

This property returns NULL if there is no current document.

Specification

DOM Level 2 -- HTMLFrameElement


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX