unload event handling - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

unload event handling

weirdmixweirdmix Posts: 27Member
hello all:
I'm having a problem, I'm opening an asp web page using javascript window.open method. The thing is, in the window opened I need to prevent that the user close the window without typing any information required. I mean, I know that I have to check if the user type something in fields in the UNLOAD event of the body tag, but how can I stop the window from closing if the checks are false?
I hope someone can help me.
thanks in advance.


Sign In or Register to comment.