how to close a tab with javascript code example
Example 1: javascript close current tab
window.close();//closes the current browser tab
Example 2: close current tab javascript
window.close();
window.close();//closes the current browser tab
window.close();