Also, as you point out, they might just type in a different URL to go to. In that case, it might be possible with some tricks to capture if they're leaving the page, but I would be hesitant to introduce that kind of behavior in my web apps, I think. They usually involve some iframe or hidden divs or something, and still are not a reliable means of doing what you want.
Webdirect seems to at least try to stick to html5 standards, which is probably a good decision in terms of cross platform/browser support they're trying to get to.
1 of 1 people found this helpful
Unfortunatly the closing the browser does not run the OnLastWindowClose script. The user has to click a button or logout. I believe that an official logout does run the script.