• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stop window from closing-urgent

 
laxmi sri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a IE window running a JSP page.When I click on window close button on the right side top, then it should display a alert box with ok and cancel.When I click cancel, the window should not be closed.How to stop that window closing event after you select cancel button in the alert.
can any one help me out please...
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for IE only, you can use onbeforeunload
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic