Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

You are here: irt.org | FAQ | JavaScript | Frame | Q528 [ previous next ]

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.

©2018 Martin Webb