Chapter 6: Using Frames
Frames are independent windows that exist inside of the browser window, giving Web sites the possibility to display multiple panes of information simultaneously. This chapter explores the ways you can manipulate frames with VBScript.

Creating a frameset
An example showing a three-frame HTML frameset. Page 58.

Accessing frames by number
Using the frames object, you can access each frame on a page by its position in a 0-based array. Page 59.

Accessing a frame from another frame.
To access a frame from another frame, you need to use the window object's top property. Pages 60-61.

Accessing frames by name
Although accessing frames by number is powerful, it can get a little monotonous. Thankfully, you can also access frames by name. Pages 62-63.

Targeting a frame
You can use the location object to target frames. Pages 64-65.

Creating a navigational toolbar
A nice navigational toolbar. This example basically ties the whole chapter together. Pages 66-67.


All content © 1997-1999 Paul Thurrott