Javascript – How to window.open with a toolbar in Google Chrome

google-chromejavascriptpopup

The following javascript opens a pop-up in Firefox, Safari, IE, and Google Chrome:

window.open("http://google.com", "foo", "toolbar=yes,location=yes,menubar=yes")

However, in Google Chrome the toolbar (with the usual forward and back buttons, etc.) does not appear on the popped-up window. (Tested on both Windows and Mac.)

How can I fix this? I would like the user to be able to navigate forward and back using the tools with which they are most familiar.

Best Answer

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.