Frame.frames

JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax

							frame.frames[num]

Description

The frames property of the Frame object represents an array that stores child frame objects. Array entries of the child frame can be referenced either by index number or by the name assigned from the NAME attribute.

Example

In Listing 7.274, the frames array is used to access the length of the child frame.

Listing 7.274 Example Using the frames Property
<script language="JavaScript">
<!-- Hide
function getFrameLength(){
     var childLength = document.frames["firstChild"].length;
}
// End Hide --->
</script>
							
						

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.