开发者

javascript window.open [duplicate]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜