how to redirect to another page on new tab in js code example Example: js redirect to url new tab window.open('http://stackoverflow.com', '_blank');