Is there any way to detect that the browser has been killed by clicking the 'X' in the top right corner.<BR>
Only if the window is opened by your program, java script, window.open (which returns the window handle), you can check whether the window is closed or not by closed method of the handle.<BR><BR>
We are talking about the initial browser window that is displayed during program start-up. Is it possible to detect that this window has been killed?
you could use the onUnload function in the body tag. when the user leaves the page, either by clicking on a link or closing the browser you could run a function to do whatever you want.