N
nicolas.hilaire
Hi all,
I just want to define my own confirm box to ask before a changing page.
For now, i'm doing this :
---------------------------------------
function myFunc()
{
return "Leave or Stay ?";
}
<body onbeforeunload="return myFunc()">
---------------------------------------
And this gives me a confirm box with "OK" button and "Cancel" button.
I want to keep this functionnality, but i'd like to desing my own
confirm box. I first want to change the caption of the button (for
example "Leave" and "Stay"), and why not, having a beautiful confirm
box with layer and div ...
Is it possible ? and how ?
Thanks a lot for you help
Nicolas H.
I just want to define my own confirm box to ask before a changing page.
For now, i'm doing this :
---------------------------------------
function myFunc()
{
return "Leave or Stay ?";
}
<body onbeforeunload="return myFunc()">
---------------------------------------
And this gives me a confirm box with "OK" button and "Cancel" button.
I want to keep this functionnality, but i'd like to desing my own
confirm box. I first want to change the caption of the button (for
example "Leave" and "Stay"), and why not, having a beautiful confirm
box with layer and div ...
Is it possible ? and how ?
Thanks a lot for you help
Nicolas H.