尝试在IE11中打开时,某些网站如何在Edge中自动打开? [英] How do some sites automatically open in Edge when tried to open in IE11?

查看:93
本文介绍了尝试在IE11中打开时,某些网站如何在Edge中自动打开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在IE11(在Windows 10上)中浏览至netflix.com(例如)时,IE11显示标题为我们建议在Microsoft Edge中查看此网站"的页面,并且该网站会自动在边缘.

有人知道这是怎么回事吗?是通过内部编译的网站列表还是我可以在自己的网站上设置的内容完成的?

谢谢

解决方案

您曾问过" 有人知道它是如何工作的吗?是通过内部编译的网站列表还是我可以在我的网站上设置的内容完成的?"

当用户访问与Internet Explorer不兼容的站点时,他们将被自动重定向到Microsoft Edge.有关更多详细信息,您可以参考

MS Edge 87 或更高版本的浏览器将安装名为 IEToEdgeBHO 的BHO,该BHO将根据从IE到IE浏览器的IE兼容性列表执行重定向.

您可以在计算机下面的位置找到此BHO.

C:\ Program Files(x86)\ Microsoft \ Edge \ Application \< Your_browser_version> \ BHO

如果您想使用自己网站中的代码来实现类似的目的,则可以参考此 answer .该测试显示了Edge旧版浏览器的结果,但它也可以与Edge(Chromium)浏览器一起使用.

注意::当计算机上未安装Edge浏览器时,答案中提到的示例代码可能会中断.因此您可以尝试修改示例以处理这种情况.

有用的参考:

  1. 在IE11中键入什么魔法"会导致"cnn.com"自动启动Edge(铬)?

When I try to browse to netflix.com (for example) in IE11 (on Windows 10), IE11 shows a page with the title "We recommend viewing this website in Microsoft Edge", and the site automatically gets opened in Edge.

Does anyone know how that works? Is it done via an internally compiled list of sites or something I can set up on my website?

Thanks

解决方案

You had asked, "Does anyone know how that works? Is it done via an internally compiled list of sites or something I can set up on my website?"

When a user goes to a site that is incompatible with Internet Explorer, they will be automatically redirected to Microsoft Edge. For more detailed information, you can refer to the Redirection from Internet Explorer to Microsoft Edge for compatibility with modern web sites.

Microsoft maintains a list of all sites that are known to be incompatible with Internet Explorer. You can view the site list here. If you want to add your site to the incompatible site list then you can refer to the Request an update to the IE compatibility list.

The MS Edge 87 or greater browser installs the BHO named IEToEdgeBHO that performs the redirection based on IE compatibility list from IE to Edge browser.

You can find this BHO at the location below on your machine.

C:\Program Files (x86)\Microsoft\Edge\Application\<Your_browser_version>\BHO

If you want to achieve something similar using the code in your own site then you can refer to the example on this answer. The test shows results for the Edge legacy browser but it can also work with the Edge (Chromium) browser.

Note: that the example code mentioned in the answer may break when the Edge browser is not installed on the machine. so you can try to modify the example to handle that kind of situation.

Helpful reference:

  1. What "magic" causes "cnn.com" when typed in IE11 to automatically launch Edge (Chromium)?

这篇关于尝试在IE11中打开时,某些网站如何在Edge中自动打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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