How To Make The Sign Out Button Close The Browser Window Immediately In Microsoft Exchange 2010 Outlook Web Access.
In OWA 2010, when you click the Sign Out button, you will normally see another page with a Close Window button. Then you see a warning telling you that The web page you are viewing is trying to close the window – Do you want to close this window?. Of course, most people want to bypass all this, and just close the browser window as soon as they click the button. Fortunately, there is a way to make that happen, but you will need to change one of the server-side .aspx files.
First, look for the logoff.aspx file in the C:\Program Files\Microsoft\Exchange Server\v14\ClientAccess\Owa\auth folder. Make a copy of it (important if something goes wrong), and then open it in Notepad. A few lines into the page, you will see the opening <head> tag. Immediately after it, insert some code so that it looks like this:
Save the file back, and you should find that the IE window now closes as soon as you click on Log Off.
The above code has been tested up to IE9. If anyone has it working with IE10, please let me know.
As with most of these type of modifications, you will need to check that they still function after each product update. Sometimes your modified file will be replaced by a new one from the update.