Javascript打开新窗口地址栏仍然显示

发布于 2024-09-17 11:54:52 字数 232 浏览 2 评论 0原文

我遇到一个问题,我单击链接并以全屏模式打开一个新窗口,但地址栏仍然显示我不希望的内容。这是我的代码:

function fullScreen(theURL) {
   window.open(theURL, '', 'fullscreen=yes, scrollbars=1, toolbar=0, location=no');
}

最新的 FF 和 IE8 中存在同样的问题...

Im having a problem where I click a link and it opens a new window in fullscreen mode, but the address bar is still showing which I don't want it to. Here is the code I have:

function fullScreen(theURL) {
   window.open(theURL, '', 'fullscreen=yes, scrollbars=1, toolbar=0, location=no');
}

Same problem in latest FF and IE8...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月光色 2024-09-24 11:54:52

出于安全原因,在现代浏览器中不再可能执行此操作(人们试图欺骗用户认为网页不是网页)。

It is no longer possible to do this in modern browsers for security reasons (people trying to trick users into thinking a web page is something its not).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文