社区
Web 开发
帖子详情
showModalDialog
gaolch
2013-03-19 05:05:24
我在用showModalDialog 的时候,浏览器总是打开一个新的标签页,而不是弹出窗口,这个怎么解决?
...全文
86
5
打赏
收藏
showModalDialog
我在用showModalDialog 的时候,浏览器总是打开一个新的标签页,而不是弹出窗口,这个怎么解决?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
zhaoli2315
2013-03-19
打赏
举报
回复
那就不是代码问题了,这种情况我也碰到过,没解决!推荐客户使用IE8
gaolch
2013-03-19
打赏
举报
回复
ie当然不会有问题的。但问题是现在用其他浏览器的用户更多
zhaoli2315
2013-03-19
打赏
举报
回复
你用的什么浏览器,你用IE试试,有些浏览器是这样的
gaolch
2013-03-19
打赏
举报
回复
我也是这么加的,但是不起作用。
花谢尊前不敢香
2013-03-19
打赏
举报
回复
<head>后面加上<base target="_self">
google不支持window.show
Mo
dal
Dialog
问题解决方案
This is a `window.show
Mo
dal
Dialog
()` shim using a
mo
dal
HTML5 `` element and ECMAScript 6 Generators. It was tested in the latest Google Chrome with the *Enable Experimental JavaScript* flag enabled in `chrome://flags/#enable-javascript-har
mo
ny` and in the latest
Mo
zilla Firefox with the *dom.
dialog
_element.enabled* preference set to *true* in `about:config`. Just include the following HTML code before using `show
Mo
dal
Dialog
` function: `[re
mo
ved][re
mo
ved]`.
show
Mo
dal
Dialog
弹出窗口关闭不刷新父窗口最终实现了
网上找了好几个小时没有找到解决办法。最终还是自己解决了。...... 比如在index.htm首页中加入了..... newslist.asp的列表链接是用show
Mo
dal
Dialog
弹出窗口做的:...... 这样做就是用超链接把返回url转递到用show
Mo
dal
Dialog
打开的新窗口中,当show
Mo
dal
Dialog
返回时指到转来的url,最终不刷新父窗口。......
使用selenium测试show
Mo
dal
Dialog
模态对话框
Selenium目前没有提供对IE模态对话框(即通过show
Mo
dal
Dialog
方法打开的弹出对话框)的处理。原因在于,模态对话框会将父页面的 JS挂起,直至对话框处理完毕才会继续执行父页面JS。因为Selenium的底层实现是基于JS的,所以模态对话框会同时将selenium挂 起,selenium无法选中模态对话框,直至超时。
div层实现show
Mo
dal
Dialog
div层实现show
Mo
dal
Dialog
show
Mo
dal
Dialog
和show
Mo
deless
Dialog
使用心得
show
Mo
dal
Dialog
和show
Mo
deless
Dialog
使用心得
Web 开发
81,092
社区成员
341,716
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章