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

Q528 How do I change the pages in two frames when I click a button in a third frame?

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

Q528 How do I change the pages in two frames when I click a button in a third frame?

Try:

<form>
<input type="button" onClick="parent.frameA.location.href='apage.html';parent.frameB.location.href='bpage.html'" value="Click Here">
</form>

Where frameA and frameB are the names of the two frames that you want to change the location of, the names being those given to the frames in the frameset.


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.