Javascript Reference
Categories: document

javascript document frames[ ]

@March 21, 2009, 8:39 a.m.
frames[ ] Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a

 

Read-only

Returns an array of all iframe objects (iframe element objects, not to be confused with window-like frame objects) in the current document. Items in this array are indexed (zero-based) in source code order. For cross-compatibility with IE 5 and later and Netscape 6, use document.getElementsByTagName("iframe") instead.

 
Example
 
var iframeCount = document.frames.length;
 
Value

Array of iframe objects.

 
Default

Array of zero length.

 


Powered by Linode.