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

Q961 Can I have a button in one frame which gets the URL of the page in an adjacent frame and then replaces the frameset with the URL?

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

Its possible if, and only if, the page in the other frame is on the same server as your page:

<form>
<input type="button" value="No Frames" onClick="top.location.href = parent.otherFrame.location.href">
</form>

©2018 Martin Webb