How to redirect to another domain on new tab with javascript code example Example: js redirect to url new tab window.open('http://stackoverflow.com', '_blank');