SyntaxFix
Write A Post
Hire A Developer
Questions
You can only close windows/tabs that you create yourself. That is, you cannot programmatically close a window/tab that the user creates.
For example, if you create a window with window.open() you can close it with window.close().
window.open()
window.close()