使用 javascript 导航到新页面并禁用菜单/全屏
我有一个有趣的问题,我需要重定向到需要全屏且禁用菜单的页面。通常我会使用 window.open() 但我要么希望原始页面关闭(没有提示),要么让原始页面导航到这个新页面。
我尝试了 window.open("index.htm", "_self", "fullscreen, menubar=no, status=no) 并在原始菜单中打开新页面,但不满足任何其他参数。
window.location也不会让我使用窗口选项
(用户将专门使用 IE 来实现此目的)
谢谢!
I have an interesting problem where I need to redirect to a page that needs to be fullscreen with menu's disabled. Normally I would use window.open() but I either want the original page to close (without promt) or for the original page to navigate to this new page.
I tried window.open("index.htm", "_self", "fullscreen, menubar=no, status=no) and opens the new page in the original menu but doesn't satisfy any of the other parameters.
window.location will not let me use the windowing options either
(the user will be using IE exclusively for this purpose)
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
既然你说它只需要在 IE 中工作,那么你可以使用这个脚本:
你必须使该网站成为受信任的站点才能工作,并且你必须启用“初始化和脚本未标记为安全脚本的 ActiveX 控件” ”。
Since you said that it only has to work in IE, then you can use this script:
You have to make the website a trusted site for this to work, and you have to enable "Initialize and script ActiveX controls not marked as safe for scripting".