javascript window.open 应该在 Internet Explorer 中打开一些网址
javascript window.open should open some urls in internet explorer
我有一种情况,我必须在 Internet Explorer 中打开一些 URL。默认情况下,用户可以在 chrome 或 edge 或 firefox 上浏览页面。但是,如果打开页面上的某些链接,则应该在 Internet Explorer 中打开它,因为这些页面取决于某些 IE 相关功能的功能。我们如何在 javascript 中做到这一点?
通常您无法选择打开的浏览器。您唯一能做的就是在计算机上注册一个协议处理程序,然后使用该协议。
https://docs.microsoft.com/en-us/windows/win32/search/-search-3x-wds-ph-install-registration
例如,您可以注册如下内容:
internet-explorer://https://example.com
然后不要使用 window.open()
(这可能行不通),只需 link 到此 URL。
我有一种情况,我必须在 Internet Explorer 中打开一些 URL。默认情况下,用户可以在 chrome 或 edge 或 firefox 上浏览页面。但是,如果打开页面上的某些链接,则应该在 Internet Explorer 中打开它,因为这些页面取决于某些 IE 相关功能的功能。我们如何在 javascript 中做到这一点?
通常您无法选择打开的浏览器。您唯一能做的就是在计算机上注册一个协议处理程序,然后使用该协议。
https://docs.microsoft.com/en-us/windows/win32/search/-search-3x-wds-ph-install-registration
例如,您可以注册如下内容:
internet-explorer://https://example.com
然后不要使用 window.open()
(这可能行不通),只需 link 到此 URL。