how to make a button that closes the current tab code example Example: javascript close current tab window.close();//closes the current browser tab