SyntaxFix
Write A Post
Hire A Developer
Questions
The windows object has a windows field in which it is cloned and stores the date of the open window, close should be called on this field:
window.open("", '_self').window.close();