That can be done quite simply with javascript can't it?

Just have an onUnload function and if you don't want the window to be closed
return false:

onUnload=" return checkWindowClose()"

function checkWindowClose(){
    if (windowCanBeClosed){
        return true;
    } else {
        return false;
    }
}
----- Original Message -----
From: "Robertson-Ravo, Neil (RX)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 3:37 PM
Subject: [ cf-dev ] Closing a window


> Is there anyway to prevent a user from closing a popup/browser window
before
> they have saved their form values?  i.e. if the form values are not blank,
> do not close.
>
> Neil
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to