how to make window.open opens in a same tab code example Example: window open same tab window.open("https://www.youraddress.com","_self")