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

后端 未结 5 1663
情深已故
情深已故 2020-12-01 18:23

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

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


        
5条回答
  •  没有蜡笔的小新
    2020-12-01 18:56

    The only option for Chrome is to not specify a third argument. Chrome ignores the third argument as they are rightly allowed to do according to the HTML 5 specification, but if present the window appears to always open in a floating widow without controls.

    If you do not specify a third argument the window that opens will be a new tab and will have all of the features the user needs.

    If you do specify a third argument you will get a new floating window with no controls other than the URL display.

提交回复
热议问题