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

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

irt.org | Knowledge Base | JavaScript | Link | Q385 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.