The window.open()
(method), will open in a new window. You can use window.location
(object) along with .href = "urladdress"
to redirect your browser to a new url address without opening a new tab.
See the following article on MDN: Window.location for more info.