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

Q385 How can I change the current location after successfully submitting a form?

You are here: irt.org | FAQ | JavaScript | Link | Q385 [ previous next ]

Only by setting a timer that changes the page location after a delay:

<script language="JavaScript"><!--
function start() {
    setTimer("location.href='nextpage.htm'",5000);  goto nextpage.htm after 5 seconds
}
//--></script>

<form onSubmit="start()">
<input type="submit" value="Submit">
</form>

Although this assumes that the form submission has completed within the 5 seconds.

Feedback on 'Q385 How can I change the current location after successfully submitting a form?'

©2018 Martin Webb