Closing Browser Windows

Hey, is there a script where you can have text saying “Click here to close window” and when they click it have the current browser window close??