TOC PREV NEXT INDEX

domref



window._content


Returns a reference to the content element in the current window.

Syntax

cHolder = window._content
 

Parameters

cHolder is an object reference.

Example

// for HTML <iframe
 
//    type="content-primary" 
 
//    src="blur.html" />
 
function cont() {
 
  loc = window._content.location.href;
 
  alert(loc);
 
}
 

 

Notes

If there is no particular element or subframe given as the content element, this method returns a reference to the window itself. Also note that this does not give you a very good way to refer to a number of different content elements. In this case, you may want to use the getElementById method to get references to the subframes you want.

This property is effectively the same as window.content. It's generally used to get the content from a browser window.

Specification

DOM Level 0. Not part of specification.
 


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