You are here: irt.org | FAQ | JavaScript | Email | Q186 [ previous next ]
The following will change the location 5 seconds after the form submission:
<SCRIPT LANGUAGE="JavaScript"><!--
function settimer() {
setTimeout('location.href="dummy.html"',5000);
}
//--></SCRIPT>
<FORM ACTION="mailto:someone@somewhere.com" METHOD="POST" ENCTYPE="text/plain" onSubmit="settimer()">
<INPUT TYPE="SUBMIT">
</FORM>Note the above does not work in Internet Explorer 3, as it does not support the mailto: action.