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

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?

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

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?

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>

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.