close browser tab on javascript button code example Example: javascript close current tab window.close();//closes the current browser tab