Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q728 How do I change the location of another frame?

irt.org | Knowledge Base | JavaScript | Frame | Q728 [ previous next ]

Q728 How do I change the location of another frame?

Instead of using something like:

location.href = 'apage.htm';

use one of the following:

parent.framename.location.href = 'apage.htm';
top.framename.location.href = 'apage.htm';
parent.frames[1].location.href = 'apage.htm';
top.frames[1].location.href = 'apage.htm';

where 0 is the first frame in the frameset, 1 is the second frame, 2 is the third frame.


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.