Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 940
brahn Avatar asked Apr 02 '10 17:04

brahn


People also ask

How do I enable the toolbar menu in Chrome?

Enabling Chrome Menu AccessOnce open, find the Settings option in the Hamburger Menu, the three dots or three lines in the top-right section of the browser. Once you open Settings, locate the Appearance section. The “show home button” will show that it is disabled. Click this item to enable it.

How do I open my browser toolbar?

Windows - Press F11 (or Fn + F11 ). Mac - Hover your mouse at the top of the screen, then click the green circle in the top-left corner of the screen when it appears.


2 Answers

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.

like image 178
Kinlan Avatar answered Nov 02 '22 00:11

Kinlan


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.

like image 40
Juan Casares Avatar answered Nov 01 '22 23:11

Juan Casares