how do you close a tab with a HTML code code example Example: javascript close current tab window.close();//closes the current browser tab