Is there a way to call a JavaScript when the window closes or the address goes to a completely different site, not just when the page changes? I know I can use onunload, but that seems to trigger when the page changes.
I have an intranet site that I need to keep track of logging in and out. Instead of users always clicking on "Log Out", some of them just close the browser window.
null, in a way) from the script engine's point of view.