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

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

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

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>

©2018 Martin Webb