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

Q186 Is there any way of sending an email using a form and moving to another page at the same time?

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.

Feedback on 'Q186 Is there any way of sending an email using a form and moving to another page at the same time?'

©2018 Martin Webb