HomeArticlesFAQsXREFGamesSoftwareInstantBooksBBSAboutFOLDOCRFCsFeedbackSearchSite-Map
logo

Internet Explorer Floating Frames

You are here: irt.org | Articles | JavaScript | Frame | Internet Explorer Floating Frames

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.

Why not try out this example!

View the profile on Martin Webb and the list of other Articles by Martin Webb.

©2011 Martin Webb