window.open js same tab code example
Example 1: window open same tab
window.open("https://www.youraddress.com","_self")
Example 2: javascript open new window
<a onclick="window.open(document.URL, '_blank', 'location=yes,height=570,width=520,scrollbars=yes,status=yes');">
Open New Window
</a>