• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

window.close

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a pop-up, if the user clicks on the 'X'(close) button of the pop-up, i need to fire certain validations. Based on the validation I decide whether to close the window or to keep it open, the problem I am facing is I am not able to hold back the window untill I give window.returnValue = "" But this again gives me a warning message box which I don't need, is there anyway to hold back the window without the warning message. This requirement is for IE 5.5 and above.

Thanks in advance,
Yegappan
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no way of trapping the close event except for using onbeforeunload with IE. I guess that is what you were asking to show this prompt or not.

Eric
reply
    Bookmark Topic Watch Topic
  • New Topic