Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
All Objects
Window Object
PROPERTY: Window::frames
window.
frames
("frameID")
This property is an array containing references to all the named child frames in the current window. These references are stored in the array in the order in which they are defined in the source code. The
"frameID"
argument is used to access items in the array and this can either be a string containing the child frame name as defined with the <FRAME> tag in the HTML source, or an integer (with '0' being the first item in the array).
The first two examples below return the same results; the first uses the defined names of the frames and the second uses their reference number within the array.
The frames array also has a length property which determines how many child frames are contained within a window. This is identical to using the length property of the window object. The third example shows the syntax for this.
Code:
window.frames["framename1"]
window.frames["framename2"]
window.frames["framename3"]
window.frames[0]
window.frames[1]
window.frames[2]
window.frames.length
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information