click button and close browser current tab 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();