When I click on the log off button, an I.E window opens up with the following message "The web page you are viewing is trying to close the window". If I click yes, the browser window closes. How can I avoid this message from popping up? I want that when the user clicks on the log off, the browser window should close without popping any new window. I am not using any popupblockers. I have used window.close() to close the browser window.