Click here to Skip to main content
15,880,972 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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");
Posted
Updated 28-Aug-18 6:07am

1 solution

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[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900