Javascript 如何在javascript中打开没有任何栏(如地址栏、书签栏等)的浏览器窗口?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31710446/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 07:04:30  来源:igfitidea点击:

How to open a browser window without any bars like address bars, bookmarks bars etc in javascript?

javascriptbrowserdojo

提问by ssam

I am looking to open a url (html file) without any kind of address bars, bookmarks bar so that the user just sees the application window. Is there a way to do so?

我希望打开一个没有任何地址栏、书签栏的 url(html 文件),以便用户只看到应用程序窗口。有没有办法这样做?

回答by cbender

window.open(url,'window','toolbar=no, menubar=no, resizable=yes');

You can read about these and more of the options here.

您可以在此处阅读有关这些以及更多选项的信息