window open same tab
snippet in javascript

window open same tab

user461

window.open("https://www.youraddress.com","_self")