Frame.length

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

							frame.length

Description

The length property of the frames object represents the length of the frames array, which is the number of child frames.

Example

Listing 7.275 shows a simple function call that uses the length property to set a variable for the number of child frames.

Listing 7.275 Example Using the length Property
<script language = "JavaScript">
<!-- Hide
function getLength(){
     var numOfChildFrames = window.frameName.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.