You can't reassign actions to executable programs like a browser with client side Javascript. What if someone decided to make the back button close the window, or print the page, or some other unusual function? Would you like someone to be able to mess with YOUR browser functions like that? This isn't being sarcastic, just showing what you're really asking to be able to do, in an effort to show why it's not allowed.