Click to See Complete Forum and Search --> : Form with countdown timer


yptec2k
01-30-2005, 06:12 AM
Hi Guys,

I want to have a countdown timer with my form on the webpage - after a given amount of time, it automatically submits the form.

Example:

User enters webpage, the form is displayed for 30 seconds, and the user is given 30 seconds to answer a few questions, when time is up - it automatically submits the given info!

Charles
01-30-2005, 06:45 AM
It is easily done in JavaScript, but it is a nasty thing to do to people with cognative disabilities.

yptec2k
01-30-2005, 02:44 PM
Its for a quiz on my site... Please give me some sort of coding to be able to do it

fredmv
01-31-2005, 11:29 PM
<script type="text/javascript">
onload = function() { setTimeout(function() { document.getElementById('f1').submit() }, 30000) }
</script><form id="f1">