How to close current tab in a browser window using JavaScript?
In this post we are going to look at the method to close the current tab of the browser window using JavaScript. In earlier time it was possible to close the current tab by using window.close() function. The following syntax was used at that time: Syntax:
1 |
window.close(); |
But as per …