Monday, July 28, 2014

Submit Form on Refresh or move to another Page

<script type="text/javascript">
 function finishpage()
{
alert("unload event detected!");
document.quiz.submit();
}
window.onbeforeunload= function() {
setTimeout('document.quiz.submit()',1);
}
</script>

No comments:

Post a Comment