// Perform logout by invoking the logout action. This will end the iSeries job function dologout() { document.logoutform.action="logout.do"; document.logoutform.submit(); } // Check if the user has closed the browser. If so, end the job function checkclose() { var x = window.event.clientX; if( x <= -1) { alert("You have closed the browser. The application is ending."); dologout(); return true; } }This code assumes that you have a form named logoutform on the page.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.