SyntaxFix
Write A Post
Hire A Developer
Questions
The below code worked for me :)
window.open('your current page URL', '_self', ''); window.close();