Modifying the standard onbeforeunload dialog is not possible.

The default statement that appears in the dialog box, "Are you sure you want
to navigate away from this page? ... Press OK to continue, or Cancel to stay
on the current page.", cannot be removed or altered.
http://msdn.microsoft.com/en-us/library/ms536907%28VS.85%29.aspx

On Sun, Oct 31, 2010 at 2:04 PM, Balaji S <[email protected]> wrote:

> Can anyone help!!!
>
>
> On Tue, Oct 19, 2010 at 2:38 PM, Balaji S <[email protected]> wrote:
>
>> Hi everyone,
>>
>> I have a requirement, I need to show a message when user tries to navigate
>> away from a page without submitting the form. I cab able to do with
>> OnBeforeUnload using javascript. But i need to customize the message, button
>> and look and feel. How can I override the OnBeforeUnload dialog and replace
>> it with my own?
>>
>> Is it possible to use Ajax model popup for the same. If yes. Could you
>> please guide me.
>>
>> Thanks,
>> Balaji
>>
>
>

Reply via email to