Because of the problems that would arise from being able to do this, it can't be done. You can 'suggest' the browser be closed via javascript, but the user will still get a pop-up asking if they want to close the window.