August 1999
Intermediate to advanced
1488 pages
72h 53m
English
window.frames["frameName"] window.frames[num]
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.
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.
<script language="JavaScript"> <!-- Hide // Use a for loop to write out the name of each frame. for(var ... |
Read now
Unlock full access