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