[null, null, {"document_url": "https://codedump.io/share/dY0fxje0v0bK/1/javascript---open-new-window-and-display-as-a-tab-chrome-ctrln-equivalent", "unformatted_src": "https://i.stack.imgur.com/A369T.png", "src": "https://i.stack.imgur.com/A369T.png", "formatted_filename": "A T", "alt_text": "enter image description here"}, null, {"document_url": "https://codedump.io/share/dY0fxje0v0bK/1/javascript---open-new-window-and-display-as-a-tab-chrome-ctrln-equivalent", "unformatted_src": "https://i.stack.imgur.com/NYQOT.png", "src": "https://i.stack.imgur.com/NYQOT.png", "formatted_filename": "NYQOT", "alt_text": "enter image description here"}, null, null]
Dmitriy Kravchuk - 1 year ago 159
HTML Question

JavaScript - open new window and display as a tab (chrome CTRL+N equivalent)

I need to open a 'New Window' using JavaScript. The window must display the page in new window with a tab instead of a simple window.

produces this window: Instead, I'm wondering if it's possible to open new window with a tab inside: Paul Stoner

Unfortunately, it is not possible. Using window.open() you can either open a new window by providing properties as the third parameter, as you have. This simply opens a basic browser with the URL displayed.

Or you can open a new tab within the current browser by not providing window properties in the third parameter. Consider the following

Adds a new tab to the current browser.

From what I can tell, and have tested, it is not possible to do both.

Email codedump link for JavaScript - open new window and display as a tab (chrome CTRL+N equivalent)

