简体   繁体   中英

Javascript: Detect if Internet Explorer sent the mixed http on https page message

I have no choice but to use a http resource to deliver content on a https page.

I want to detect if Internet Explorer displayed the 'mixed http/https' message/prompt, so I can display a message to inform the user that this content will not show w/o accepting http content on https page.

Looking for a function to detect.

Thanks!

Normally, whether or not that appears should only depend on the version of IE and if there's actually mixed content.
So in theory, you could just detect if it's a version of IE which does that, and then display a message prior to making the request that the user must accept it for the site to work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM