Communicate between tabs dom without window ref [duplicate]
问题 This question already has answers here : Communication between tabs or windows (9 answers) Closed 3 years ago . I use the following to open new tab (in new process) with some page content, var p = document.getElementById("myElement"); var a = document.createElement('a'); a.setAttribute('href',".../mypage.html"); a.setAttribute('rel',"noreferrer"); a.setAttribute('target',"_blank"); p.appendChild(a); a.click(); http://news.softpedia.com/news/Force-Google-Chrome-to-Open-Links-in-New-Processes