有没有一种方法可以在已经通过JavaScript从父窗口打开的窗口中打开新的选项卡,但在新窗口而不是父窗口中打开选项卡?
换句话说,你能从一个JavaScript在同一个DOM中做这类事情吗?
//this opens the new window
var windowOpened = window.open("html1.html", "", "width=400, height=200");
//this is where I would like to open a new tab in the window I opened above