我如何在IE中更改模态窗口弹出窗口的图标。 [英] How I can change the icon of a modal window popup in IE.

查看:74
本文介绍了我如何在IE中更改模态窗口弹出窗口的图标。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过JS我打开一个模态弹出窗口,但我需要将IE图标更改为此页面。



我该怎么做。



我尝试了什么:



我这样打开页面。

By JS I'm open a modal popup, But i need to change the IE icon to this page.

How I can do that.

What I have tried:

I'm opening the pages this way.

window.showModalDialog("../AccessStudyTemplate/AccessStudyTemplate.html?id_gdm_study_index=" + id_gdm_study_index + ';isArea=' + area, "", "scroll:no;dialogWidth:500px;dialogHeight:180px");

推荐答案

你不能。如果可以的话,恶意网站会欺骗用户认为对话框是系统级消息是微不足道的。



另外, showModalDialog 已于2014年从Chrome中删除 [ ^ ]和 [ ^ ]。它在IE11中已弃用,在Microsoft Edge中不受支持。有多种方法可以替换这种已弃用的方法 - 例如,这些两个 [ ^ ] polyfills [ ^ ]。
You can't. If you could, it would be trivial for malicious sites to trick users into thinking that the dialog was a system-level message.

Also, showModalDialog was removed from Chrome in 2014[^], and from Firefox in 2017[^]. It's deprecated in IE11, and not supported in Microsoft Edge. There are various options to replace this deprecated method - for example, these two[^] polyfills[^].


这篇关于我如何在IE中更改模态窗口弹出窗口的图标。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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