[疑难杂症]window.open和window.showModalDialog的status=no无法关闭状态栏
来源:互联网 发布:java的splice方法 编辑:程序博客网 时间:2024/06/05 03:33
[环境] Windows XP SP2 + IE系列
[现象] window.showModalDialog()弹出模态对话框,将其属性status设置为no。在Intranet区域即本地网络不见状态栏,但是在Internet中状态栏又显示出来了。
[原因] Windows XP SP2的新安全特性Windows Restrictions security feature(WRSF),为了安全,SP2特意强制将弹出的标题栏和状态栏都显示,让浏览者知道自己正在访问哪个地址哪个网页,防止恶意欺骗。此特性对Internet区域有效,而对本地的Intramet区域无效,就是说在XP SP2下使用代码status=no控制窗口无状态栏已经无效了。
[解决]一,在客户端上将系统的站点地址加入IE属性“安全”选项中的“本地Intranet”区域。
二,修改客户端注册表键值关闭WRSF特性。
[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Internet
Explorer/Main/FeatureControl/FEATURE_WINDOWS_RESTRICTIONS] iexplore.exe=1
[备注]B/S系统的每个客户端都需要修改就似乎不太现实,惟有让状态栏显示。
[参照]
http://www.microsoft.com/technet/prodtechnol/winxppro/maintain/sp2brows.mspx#E6SAE
Internet Explorer Using Feature Control Registry Settings with Security Zone Settings
What do Feature Control Registry Settings and Security Zone Settings do?
Feature Control registry settings are provided in Windows XP SP 2 so that a specific
process can be configured to opt-in to a particular security feature. In the following
example, Internet Explorer has been configured to use the Windows Restrictions security
feature(WRSF):
[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft
/Internet Explorer/Main/FeatureControl
/FEATURE_WINDOWS_RESTRICTIONS] iexplore.exe=1
Once a process has been configured to use a security feature, the security feature is
running and security zone settings can be applied for more precision, if implemented
for that feature. In the Security Settings tab of Internet Options, the user can adjust
these settings for many of the new Windows XP SP2 feature controls. If you select
Enable, it lowers the security settings and allows the behavior to run less securely,
or in the same manner as it did in Windows XP Service Pack 1. For example, if Windows
Restriction is set to Enable in the Intranet zone, Windows Restrictions will not be
applied — script-initiated windows can be opened as freely as in Windows XP SP1. The
Windows XP SP2 restrictions can be applied again by setting the security zone setting
to Disable, which blocks the less-secure behavior while the feature control is enabled
for that process.
For example, if the feature is turned on for Windows Restrictions, this feature:
? Forces the status bar to be present in script-initiated Internet Explorer windows
with the title bar [those that were created with window.open()].
? Constrains the size and positioning of script-initiated Internet Explorer windows
that have title and status bars to ensure that the title bar and the status bar in
these windows is always visible to the user.
- [疑难杂症]window.open和window.showModalDialog的status=no无法关闭状态栏
- window.open、window.showModalDialog和window.showModelessDialog 的区别
- window.open、window.showModalDialog和window.showModelessDialog 的区别
- window.open、window.showModalDialog和window.showModelessDialog 的区别
- showModalDialog 和open.window的不同
- showModalDialog 和 window.open 的区别
- window.open() 和 window.showModalDialog() 的返回值
- window.showModalDialog模式对话框 和 window.open的区别
- window.showModalDialog 和 window.open的区别以及用法
- window.showModalDialog模式对话框 和 window.open的区别
- window.showModalDialog和window.open的参数区别
- window.open()和window.showModalDialog()使用方法
- Window.Open() 和 window.showModalDialog()参数
- window.open和window.showModalDialog用法
- Window.Open() 和 window.showModalDialog()参数
- window.open和window.showModalDialog使用
- window.open和window.showModalDialog心得
- window.open()代替window.showModalDialog()的方法
- Ubuntu9.10下编译Android源码
- 交互设计工具:10款原型开发工具
- 浅谈Oracle数据库的建模与设计
- 有关CodeWarrior的一点总结(转)
- Android 的source (需安装 git repo)
- [疑难杂症]window.open和window.showModalDialog的status=no无法关闭状态栏
- Oracle触发器详解
- 实现自动增加时间、文件、行数打印
- 集合FactoryBean的配置
- 模块化Java简介
- 关于treeview节点右键选中并关联右键菜单
- Linux下的IP设置
- (转)有序表上的二分查找
- oracle之sys_connect_by_path(行转列挺好用的)