how to open external url on same tab in react code example Example: window open same tab window.open("https://www.youraddress.com","_self")