Skip to content

Instantly share code, notes, and snippets.

@lamielle
Created August 14, 2012 00:40
Show Gist options
  • Save lamielle/3345183 to your computer and use it in GitHub Desktop.
Save lamielle/3345183 to your computer and use it in GitHub Desktop.
Simple HTML page that closes itself when opened. Doesn't work in newer versions of Firefox.
<!doctype html><html><head><script>
window.onload = function load() {
window.open('', '_self', '');
window.close();
};
</script></head><body></body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment