javascript script to close current tab 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();