|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to handle the window closing event without calling windlow.onBeforeUnLoad()?
I want to validate something when the user clicks the X mark in the window to Close.I don't want to call the window.onBeforeUnLoad(),method ,since it is pop Up the confirmation Dialog Box.Since i don't want that Dialog box.
If any one suggests the alternative,it will be very much useful to me. Thanks in advance. |
|
#2
|
||||
|
||||
|
how about onunload? or is that the same where you dont what it?
colton22
__________________
![]() Hang Out, Listen To Music, Have Fun, and Customize Your Experiance All In One Place! - Colton22's World - This is My World |
|
#3
|
|||
|
|||
|
Quote:
If i calls the onUnLoad(),method it simply closing the window,then i showing the confirmation box(i have created for trail),but i wants to stop the window being closed till my validation gets over, than i have to decide whether, the window has to close or not. is it possible to stop the window to getts closed,without calling the onBeforeUnload()?????? |
|
#4
|
||||
|
||||
|
Javascript and DOM have limited control what a browser can do.
Refer to: HTML event types
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter! DevArticles Forum Moderator "The net is a waste of time, and that's exactly what's right about it." -- William Gibson |
|
#5
|
|||
|
|||
|
Re: onbeforeunload
Quote:
--- You can very well use this onbeforeunload. If you dont want to see the dialog box, then only thing you have to do is... the function should not return any values to the 'onbeforeunload' event. For ex: you should not write like this <body ... onbeforeunload="return yourfunction();"...> instead it will work if you write <body... onbeforeunload="yourfunction();"...> Try this and let me know if any issue araises... Thanks Hariprasad R abouthtmls.com |
|
#6
|
||||
|
||||
|
decision
Quote:
Last edited by Mittineague : March 1st, 2007 at 03:57 PM. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > How to handle the window closing event without calling windlow.onBeforeUnLoad()? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|