Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

auto submit form after x seconds 1

Status
Not open for further replies.

mrsbean

Technical User
Jul 14, 2004
203
US
I have the following code which I retrieved from a posting on this forum:

Code:
<script type="text/javascript" language="javascript">
    document.forms['newsubmit'].submit();
</script>

It works great. I'm a javascript illiterate. How could I change/add to this script so that it submits after a few seconds?

MrsBean
 
[tt]setTimeout("document.forms['newsubmit'].submit();",3*1000);[/tt] //few: 3 seconds
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top