length property (window)
The frame elements can be accessed through the frames collection.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read/write.
Possible values:
Integer that represents the number of frames.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the length property:
|
||||
<head> <script type="text/javascript"> function GetNrOfFrames () { alert (window.length); } </script> </head> <body> <iframe></iframe> <button onclick="GetNrOfFrames ()">Get the number of frames in the window!</button> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
Related pages:
External links:
User Contributed Comments