Re-directing access within frames - Revisited
Re-directing access within Frames #2
You are here: irt.org | Articles | JavaScript | Frame | Internet Explorer Floating Frames [ previous next ]
Published on: Tuesday 8th April 1997 By: Martin Webb
With normal frames defined using the <FRAMESET> tag, it is possible to access the frame from JavaScript using either the frame name defined with the NAME attribute or using the frames array using frames[x], where x is the index number of the frame within the FRAMESET.
With Microsofts implementation of floating frames which can be used and defined within any window using the <IFRAME> tag (see Source Files), it is only possible to access the frame by the frames array.
For example if we have two frames called display and nav, where display contains a floating frame called floater it is possible to change the contents of the floater frame from within the display using:
parent.display.frames[0].location.href = 'newfile.htm'
but NOT with:
parent.display.floater.location.href = 'newfile.htm'
Which would cause the error floater is not an object.
Re-directing access within frames - Revisited
Re-directing access within Frames #2
Changing the location of another frame