解决关闭showModalDialog窗口弹出画面问题
2007-08-03 11:41
375 查看
弹出窗口后,为了不让队父窗口进行操作,使用了window.showModalDialog()的方法,可是在关闭showModalDialog窗口的时候,总是会弹出一个新窗口。开始一直认为这个IE的bug,后来才发现自己在页面上少写<base target="_self">。索性把target属性查个到底:
Syntax
Possible Values
The property is read/write. The property has a default value of _self.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.
Remarks
If there is no existing window or frame with the same name as specified in the target, a new window is opened with a name equal to the value of the target.
The window name is an optional argument in the open scripting method.
The property is read/write. The property has a default value of _self. 这句话说明默认的时候_self,为什么一定要加上后才有用呢?以后有时间再去研究吧。
Syntax
HTML | <ELEMENT TARGET = sTarget... > |
---|---|
Scripting | object.target [ = sTarget ] |
Possible Values
sTarget | String that specifies or receives one of the following values.
|
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.
Remarks
If there is no existing window or frame with the same name as specified in the target, a new window is opened with a name equal to the value of the target.
The window name is an optional argument in the open scripting method.
The property is read/write. The property has a default value of _self. 这句话说明默认的时候_self,为什么一定要加上后才有用呢?以后有时间再去研究吧。
相关文章推荐
- 解决showModelessdialog和showModaldialog弹出的窗口不能查看源代码的问题
- 解决showModalDialog 弹出新窗口问题
- 解决showModalDialog弹出的子窗口不能刷新的问题
- 解决以showModalDialog打开的页面在提交表单时弹出新窗口的问题
- 解决JavaScript页面刷新 与 弹出窗口问题 无提示关闭窗口
- 弹出showModalDialog窗口提交表单并关闭窗口的问题 (关闭又弹出新窗口问题)
- window.showModalDialog方式/模式窗口数据不刷新(缓存)问题/模式窗口中,链接弹出新窗口问题/无提示关闭页面的方法
- [亏了] base 标签解决showModalDialog 弹出新窗口问题!
- 解决无法关闭IE中alert()或者confirm弹出窗口的问题
- 解决以showModalDialog打开的页面在提交表单时弹出新窗口的问题
- 如何解决在ASP.NET中应用JavaScript的 alert 函数时弹出的窗口背景全部为白色的问题
- 图文详细解决office2010弹出:“此错误通常是由宏安全 性设置造成。。。。”窗口的问题
- javascript页面刷新与弹出窗口问题解决方法
- Javascript刷新页面的几种方法(页面刷新与弹出窗口问题解决方法)
- 解决浏览器拦截弹出窗口问题
- Activity做为弹出框窗口不能对齐屏幕宽度问题的解决
- 解决eclipse弹出“Building workspace has encountered a problem. Errors during build.”窗口问题
- 解决弹出的窗口window.open会被浏览器阻止的问题(自定义open方法)
- c#项目关闭窗口却不能关闭进程问题的解决
- 问题解决--xenapp 6 注销时弹出Windows 注销窗口