Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org 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.


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.