U
UKuser
Hi folks,
Can anyone tell me why this is not working, where the script is placed
in the header section and document.pressed=this.value; is in the
onClick statement of a form submit button.
window.onbeforeunload =
function OnSubmitForm(){
if (document.pressed='Save1'){
return true;
} else {
return("You will lose any unsaved info");
}
}
I'm trying to get it so that you only get the error when you make a
move other than clicking the Continue button.
Any help would be great, as I'm not a javascript guru.
Thanks
Can anyone tell me why this is not working, where the script is placed
in the header section and document.pressed=this.value; is in the
onClick statement of a form submit button.
window.onbeforeunload =
function OnSubmitForm(){
if (document.pressed='Save1'){
return true;
} else {
return("You will lose any unsaved info");
}
}
I'm trying to get it so that you only get the error when you make a
move other than clicking the Continue button.
Any help would be great, as I'm not a javascript guru.
Thanks