The following won't stop them doing it but you will at least give them a
warning. You can play with the unloadMess to display a different message or
do some other things

<!--
function unloadMess(){
    mess = "DO NOT click the OK button!!!\nClick the CANCEL button NOW!!!"
    return mess
}

function setBunload(on){
    window.onbeforeunload = (on) ? unloadMess : null;
}

function verify()

setBunload(true);
  
//-->
</script>

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of rob
Sent: Thursday, 11 March 2004 10:08 AM
To: CFAussie Mailing List
Subject: [cfaussie] how can i control the close button on a web browser


i have teachers collarbrating online however some of them click the 
close button before submitting.

I have got a script going so when the teacher goes to the update form 
the activity becomes disabled in the db so other teachers cant modify 
the same for at once however i am relying on the fact that they hit the 
submit form to ensure the activity becomes active to the next person to 
modify it.

how can i control close button at the top of the browser sooo...

if close button hit
make activity active
end if

pleas help!

Robert Shaw
Online Learning
[EMAIL PROTECTED]
MLC School
Rowley Street
Burwood  2134
Phone: 97471266
Mobile: 0422222515
Fax: 97453254


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To
unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to