JavaScript Snippets: Close Window