You are here: irt.org | FAQ | JavaScript | Form | 7.3 | Q956 [ previous next ]
Use something like:
<form name="myForm"> </form> <script language="JavaScript"><!-- setTimeout('document.myForm.submit()',10000); //--></script>
If however the action is a mailto: then:
<form name="myForm" action="mailto:someone@somewhere.com"> <input type="submit" name="mySubmit"> </form> <script language="JavaScript"><!-- setTimeout('document.myForm.mySubmit.click()',10000); //--></script>
In either case the browser will warn the user that a form is being submitted for them, which they can then cancel.