You can use the window.close() method to close the current tab in a browser window using JavaScript….
close the current tab in a browser using javascript
1 Article
1
You can use the window.close() method to close the current tab in a browser window using JavaScript….