How to window.open with a toolbar in Google Chrome? How to window.open with a toolbar in Google Chrome? google-chrome google-chrome

How to window.open with a toolbar in Google Chrome?


Unfortunately Chrome only supports a small set of window features when using window.open. If you believe that this is a bug or an issue you can file it at [http://crbug.com].

If you just use window.open(url) then it will open a new tab in the same window with the buttons you desire.


There is a bug open for Chrome:https://code.google.com/p/chromium/issues/detail?id=82522

It has not received a lot of attention from Google. Vote for it.


Updating on current behavior (as of 4/26/2017)

The expected behavior should be a new PopUp Window when size dimensions are passed as arguments to window.open (if toolbar is enabled, then add the toolbar to the PopUp window). If no dimensions are indicated just default to opening a new tab (in this case toolbar enabled is the default).(Btw, this is FF current Behavior (version 54.0a2)) .

Chrome Behavior (Canary 60.0.3079.0)

Opens PopUp Window to indicated dimensionswindow.open("https://google.com","foo","width=800, height=780")

Opens New Tab (browsers default minimized size, ignores size dimensions)window.open("https://google.com","foo","width=800, height=780,toolbar=1")

FF Behavior

w/Size DimensionsOpens PopUp Window w/o ToolBar (NO toolbar)window.open("https://google.com","foo","width=800, height=780")

Opens PopUp with ToolBarwindow.open("https://google.com","foo","width=800, height=780, toolbar=1")

w/o dimensionsOpens New Tabwindow.open("https://google.com","foo")window.open("https://google.com","foo", "toolbar=1")