The following code brings up a message box on my PC (MS IE 5.0), but doesn't function for the Mac. Any ideas on what I can do? The code does fire on the Mac, but return statement doesn't do anything.
<SCRIPT LANGUAGE="javascript">
var submitted;
submitted = false;
function window.onbeforeunload() {
if (submitted == false) {
return "If you leave, changes will not be saved.";
}
}
</SCRIPT><
<SCRIPT LANGUAGE="javascript">
var submitted;
submitted = false;
function window.onbeforeunload() {
if (submitted == false) {
return "If you leave, changes will not be saved.";
}
}
</SCRIPT><