I want to open new tab on my example1.com if someone enter the example1.com, example2.com will opened in new tab but still the visitors should see example1.com is that bossible. At least i fount this code but it's require permission and when it's opened the visitors directly see example2.com
window.onload=function(){
document.getElementById("myLink").click();
};
<a id="myLink" href="http://yahoo.com" target="_blank"> CLICK HERE NOW </a>