| | |
Is it possible detect browser process termination?
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
| View Poll Results: Was the post useful? Please provide your vote. | |||
| Yes | | 0 | 0% |
| No | | 0 | 0% |
| Voters: 0. You may not vote on this poll | |||
![]() |
•
•
Join Date: Oct 2009
Posts: 2
Reputation:
Solved Threads: 0
I am a newbee to JavaScript was was just fiddling around with events for a browser...
Is it possible to detect the browser process termination done through the Task Manager in windows.
Process:
1. Goto Task Manager
2. Right click on the browser process e.g. iexplorer.exe
3. Select "end process" to terminate the process
JavaScript can detect the window close by using body onunload event. On the similar bases, is it possible to detect the process termination event using JavaScript??
I tried a simple example using body onunload, but it failed to run the onunload event during the browser process termination. And i am of the opinion that this is not possible as all using JavaScript since terminating a process is a system / OS level task and is not related to browser events.
Is it possible to detect the browser process termination done through the Task Manager in windows.
Process:
1. Goto Task Manager
2. Right click on the browser process e.g. iexplorer.exe
3. Select "end process" to terminate the process
JavaScript can detect the window close by using body onunload event. On the similar bases, is it possible to detect the process termination event using JavaScript??
I tried a simple example using body onunload, but it failed to run the onunload event during the browser process termination. And i am of the opinion that this is not possible as all using JavaScript since terminating a process is a system / OS level task and is not related to browser events.
0
#2 Oct 24th, 2009
Nilesh,
I just tried and got the same result - onunload doesn't fire if process is killed.
I guess you're right - terminating the process acts at too high a level. The javascript engine must die before it has a chance to respond.
That said, I tested with IE6 under win 2000. It's just possible that there may be differneces in bahaviour depending on browser and OS. However, it seems certain that you can't rely on the event firing for all users in an internet-served application.
Airshow
I just tried and got the same result - onunload doesn't fire if process is killed.
I guess you're right - terminating the process acts at too high a level. The javascript engine must die before it has a chance to respond.
That said, I tested with IE6 under win 2000. It's just possible that there may be differneces in bahaviour depending on browser and OS. However, it seems certain that you can't rely on the event firing for all users in an internet-served application.
Airshow
50% of the solution lies in accurately describing the problem!
![]() |
Similar Threads
- Detect browser window closing event in Firefox - (JavaScript / DHTML / AJAX)
- Proper process termination (Assembly)
- hijacked web browser (prosearching.com) (Viruses, Spyware and other Nasties)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Passing from image Array in url
- Next Thread: Help Postioning Nav Bar
Views: 335 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
acid2 ajax ajaxcode ajaxhelp animate array automatically autoplay beta boarder box bug button calendar captcha card cart codes column cookies createrange() css cursor date debugger decimal design developer dom download dropdown element enter error events firefox firehose flash focus form frameworks getselection google gwt html htmlform iframe image() index java javascript javascripts jawascriptruntimeerror jquery jsp listbox maps marquee masterpage menu microsoft mimic mp3 mp4 offline onmouseover parameters php player post problem programming progressbar prototype rating redirect regex safari scale scriptlets search select size sources sql starrating text textarea toggle twitter validation variables w3c web website window windowofwords windowsxp xml xspf





