[opencms-dev] Adding a confirmation dialog on close of browser.

Siddhartha Lahiri (S) LahiriS at telkom.co.za
Wed Mar 1 09:12:12 CET 2006


Hi,

I am trying to add a confirmation dialog on the close of the browser.

I tried adding

        window.onunload = function() {

                return "Confirmation Message";

        };

To workplace.jsp

The problem arises when the user tries to reload, edit or preview a
content.

The event is fired and asks for confirmation.

Has anybody achieved similar solution? As I am comparatively new to
opencms, cud somebody help me.

Thanks

Siddhartha Lahiri



________________________________

avast! Antivirus <http://www.avast.com> : Outbound message clean.

Virus Database (VPS): 0609-0, 02/27/2006
Tested on: 3/1/2006 10:12:12 AM
avast! - copyright (c) 1988-2005 ALWIL Software.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060301/c2bc02eb/attachment.htm>


More information about the opencms-dev mailing list