i rally need help... i have this page wherein i have a timer... as soon as the time expires, i want an alert box to appear then submit the form to another page... please... i really need help...
someone actually gave me a code which worked... however, it's showing a confirm dialog box instead of an alert box... here's the code...
function subForm(){
var conf=confirm('Submit?')
conf?document.forms['formname'].submit():null;
}
onload=function(){setTimeout('subForm()',300000)}//5 minutes
</script>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.