Here is a simple solution i found after some googling and experiments:
function conFunction()
{
return 'Please make sure you have filled in form correctly before navigating to next page!';
}
window.onbeforeunload = conFunction;
place this in Head tag of your page
onbeforeunload bydefault shows a confirm dialogue box, that helps preventing undesired navigation to backpage.
No comments:
Post a Comment