wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Change default java script onbeforeunload confirm message box on jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Change default java script onbeforeunload confirm message box on jsp" Watch "Change default java script onbeforeunload confirm message box on jsp" New topic
Author

Change default java script onbeforeunload confirm message box on jsp

ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

I am using onbeforeunload event to detect browser close. However, it works great in my code but, i want to change the default text inscribed by IE in confirm popup. Can any one tell me how to disable the text ?


Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
This has nothing to do with JSP. There's a HTML/JS forum. Have patience and the topic will be moved.

One hint: do you have Google installed at your machine? Try it. With only 2 keywords I got the answers you need.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61458
    
  67

Moved.

Please take the time to choose the correct forum for your posts. For more information, please read this.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Oh I should add, the onbeforeunload event is an proprietary event and not specified by w3 specification. So this isn't going to work in all webbrowsers. For instance Opera which very strictly follows the w3 specification doesn't support it.

The keywords are "onbeforeunload" and "message" by the way.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Change default java script onbeforeunload confirm message box on jsp