Close window
You can only close window created by yourself. So there is a trick for that:
window.open('', '_self', '')
window.close()
Written by Sun Ning
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Javascript
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#