开发者

javascript window.open [duplicate]

开发者 https://www.devze.com 2023-01-11 10:16 出处:网络
This question already has answers here: Closed 12 years ago. Possible Duplicate: JavaScript open in a new window, not tab
This question already has answers here: Closed 12 years ago.

Possible Duplicate:

JavaScript open in a new window, not tab

How can I open a new window (not a tab!) when I call a window开发者_开发知识库.open function. That window should not contain an toolbar, or menu options.

Thanks


window.open("http://www.google.com",
            "name_your_window",
            "location=1,status=1,scrollbars=1,resizable=no,width=200,height=200,menubar=no,toolbar=no");

For a list of the parameters available, see here.


You can't override the browser settings to "open all new windows in a tab" in all browsers (thank goodness). This is a duplicate of: JavaScript open in a new window, not tab

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号