open link into the same window code example Example: window open same tab window.open("https://www.youraddress.com","_self")