Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

setTimeout

Question posted by: webber4technologies (Newbie) on September 28th, 2006 06:53 PM
setTimeout("dosubmit()",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.Redirect? or does this code need to be modified to redirect to a certain URL?
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
acoder's Avatar
acoder
Site Moderator
9,896 Posts
May 16th, 2008
06:20 PM
#2

Re: setTimeout
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".

Reply
Reply
Not the answer you were looking for? Post your question . . .
170,099 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Top Javascript / DHTML / Ajax Forum Contributors