Is there a way to capture when the user clicks the X on the menubar to close a window?<BR><BR>thanks<BR>james
...because the window is closed when your code executes. Mind you, you can use the onUnload event handler of the window object to check whether the window has been closed - through the X or by other means.<BR><BR>Oliver.
Sorry about posting in the wrong place. I am currently using the onbeforeunload event so I guess I will have to live with that.<BR>thanks for the help.<BR>james
what was the reasoning behind that?<BR><BR>