I would like to customize the way a new window opens by displaying it in a tabbed view rather than a separate popup. I have attempted the following methods:
var strWindowFeatures = "location=yes,height=570,width=520,scrollbars=yes,status=yes";
var URL = "https://www.website.com/cws/share?mini=true&url=" + location.href;
var win = window.open(URL, "_blank", strWindowFeatures);
The above code successfully opens a new window as a popup. Additionally, I tried the following approach for opening in a new pop-up:
var win = window.open(url, '_blank');
win.focus();
Despite my attempts at combining these two procedures, I have not been successful. Can anyone confirm if this is feasible and provide guidance on how to achieve it? Thank you!
EDIT:
Prior to posting this question, I reviewed all existing answers. Here's how my inquiry differs: https://i.sstatic.net/atwba.png A popup appears as shown in Image 1 (which I can open).
In contrast, a new tab display resembles Image 2: https://i.sstatic.net/6uhiH.png
In essence, I aim to convert the popup from Image 1 into the tab structure illustrated in Image 2.