When a user of a WebDirect site closes his browser or goes to another site, will the OnLastWindowClose script trigger be fired?
This would make it possible to log him out properly and even do some other stuff, like registering when this happened.
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.
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.
Retrieving data ...