setTimeout

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • webber4technologies
    New Member
    • Sep 2006
    • 1

    setTimeout

    setTimeout("dos ubmit()",3000)

    function dosubmit(){
    myform.submit()
    }

    Question: im assuming that this code imbedded into the page will hold the page til time is up?
    Question: 3000 seconds ??
    Question: do i put this code before the Response.Redire ct? or does this code need to be modified to redirect to a certain URL?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    It's 3000 milliseconds = 3 seconds only.

    To change the URL that it submits to, change the form action either in the HTML or using JavaScript: myform.action = "newurl.php ".

    Comment

    Working...