Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Change default java script onbeforeunload confirm message box on jsp

 
ujjwal soni
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64845
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved.

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

 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic