const newChildWindow = window.open(
url, "_blank", `width="${altScreen.availWidth}", height="${altScreen.availHeight}"`
);
newChildWindow?.resizeTo(altScreen.availWidth, altScreen.availHeight);
newChildWindow?.moveTo(altScreen.left, 0);
fun1() {
this.doSetup("http://www.google.com");
}
fun2() {
this.doSetup("http://www.twitter.com");
}
fun3() {
this.doSetup("http://www.linkedin.com");
}
These functions correspond to three different buttons. Providing the URL as an argument is working fine. However, due to the "_blank" attribute, every link opens in a separate window. I want to keep the "_blank" attribute but have the links override the specific window only.
Is there a way to achieve this?