open a url in the smae window in javascript code example Example: window open same tab window.open("https://www.youraddress.com","_self")