window.frames

JavaScript1.0+, JScript1.0+ Nav2+, IE3+, Opera3+ Syntax

							window.frames["frameName"]
window.frames[num]

Description

The frames property of the Window object contains an array that stores each frame instance created with the <frame> tag, in a document. Array entries of the child frame can be referenced either by index number or by the name assigned by the NAME attribute of the <frame> tag.

Example

Listing 7.541 uses the length property of frames array and a for loop to access the name of each frame in the window. This information is then written to the document window.

Listing 7.541 Example of Using the frames Property
 <script language="JavaScript"> <!-- Hide // Use a for loop to write out the name of each frame. for(var ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.