Skip to content

Instantly share code, notes, and snippets.

@yano3nora
Created July 2, 2017 06:21
Show Gist options
  • Save yano3nora/4ca20a337dc07180f9af7a44a8bd301d to your computer and use it in GitHub Desktop.
Save yano3nora/4ca20a337dc07180f9af7a44a8bd301d to your computer and use it in GitHub Desktop.
[js: close window] Close window on few secound later. #js
setTimeout(function(){
window.open('about:blank', '_self').close();
}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment