-
send stuff after 10 sec
I want to have something who will send the answer between 2 radio box, but the user have only 10 seconds, if he choose nothing he send the current checked radio box.
Here is what I have but it doesnt work:
Code:
<META HTTP-EQUIV="Refresh" Content="10
<FORM action=vote_web.asp method=post>
URL=sondage_web.htm">
<INPUT type="radio" checked disabled readonly value="a" name="u_input">Oui<BR>
<INPUT type=radio value=b name=u_input>Non<BR>
<INPUT id="menu2" type="submit" value="Votez!">
</FORM>
-
Use the JavaScript SetTimeout() function.
-
don't know about the fn Hobo mentioned. anyways, my take on this would be:
1. Use a timer function in Javascript.
2. Make this function call form.submit after 10 seconds.
-
I do not know javascript that can help me just a code that I will copy and modify. Please :rolleyes:
-
then u'll have to wait...and a long wait it will be if u wait for me because i am leaving for a weeklong vacationnnnnnnnnn 'urrayyyyyyyyyy!!!
btw, checkout planetsourcecode.com, and the netscape site for JS reference and try to do it yourself..
bye!
-
Search this site for information on the SetTimout function in JavaScript. It waits a certain number of milliseconds before executing a function.