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

Q1163 How can I break out off a frame when the submit button is clicked?

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

Q1163 How can I break out off a frame when the submit button is clicked?

If you mean you want the page defined in the ACTION attribute to load into the top page then use:

<form target="_top" action="nextpage.htm">
<input type="submit">
</form>

If you are not interested in the ACTION attribute then:

<form onSubmit="top.location.href='nextpage.htm';return false">
<input type="submit">
</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.