在IE8上执行windows.open时无法隐藏状态栏 [英] Can't hide status bar when doing windows.open on IE8

查看:140
本文介绍了在IE8上执行windows.open时无法隐藏状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么当我使用window.open(test.html,a,status = no)时仍会显示状态栏。这仅适用于IE8,并且仅当站点不在受信任区域时才有效。在这种情况下,状态栏无论我做什么都会出现。

Why status bar is still shown when I'm using window.open("test.html", "a", "status=no"). This doesn't work on IE8 only and only if site is not in trusted zone. In this case status bar appears no matter what I do.

推荐答案

这是一个IE8安全功能。

It's an IE8 Security feature.

默认情况下,不可信站点在打开新窗口时无法隐藏窗口元素(状态栏,地址栏)。

By default, non-trusted sites can't hide window elements (status bar, address bar) when opening new windows.

这个想法是为了防止恶意网站伪装成可信站点并隐藏地址和状态栏,以便您无法分辨该页面的真实URL。

The idea is to prevent a malicious site from masquerading as a trusted site and hiding the address and status bars so you can't tell the real URL of the page.

用户确实拥有但是可以选择禁用此功能。

Users do have the option of disabling this feature though.

这篇关于在IE8上执行windows.open时无法隐藏状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆