Note : Both Netscape and Internet Explorer support the Frames collection (Netscape call it an array). For properties, methods and events that are supported by frame elements, see the
The Frames collection is an ordered, indexed (by source order) array, containing a reference to Window Objects. If the document contains a
<BODY> element, then the frames collection contains references to the
<IFRAME> elements in the document. If the document contains a
<FRAMESET> element, then the frame collection is populated with references to
<FRAME> elements. (Note : Netscape doesn't support
<IFRAME> and so will only populate the frames collection with references to valid
<FRAME> elements. Also,
<IFRAME> elements that are referenced across frames/windows can only be accessed through the Document Object).
length property returns the number of frames in the collection. Note that the
length count starts at 1, not 0 as the frames collection index does.
item method retrieves single items, or sub-collections from the all collection. It accepts the following arguments:
index is a number, then the method returns a reference to the frame object at that position in the frames collections index. I.e.
bIsScrolling be a boolean value, depending on the value of the
SCROLLING attribute of the referenced frame object.
index property is a string value, then the
item method returns the first valid frame object that has the
ID used as the string contained in the
© 1995-1998, Stephen Le Hunte
|file: /Techref/language/html/ib/Scripting_Reference/framcol.htm, 3KB, , updated: 2004/3/1 16:47, local time: 2019/10/14 23:06,
|©2019 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.sxlist.com/techref/language/html/ib/Scripting_Reference/framcol.htm"> The Frames collection</A>
|Did you find what you needed?|
Welcome to sxlist.com!
& kind contributors
just like you!
Please don't rip/copy
Copies of the site on CD
are available at minimal cost.
Welcome to www.sxlist.com!