onclick redirect to another page in javascript on another tab code example Example: javascript link to another page window.open("http://mywebsite.com/home.html")