【问题标题】:Blazor Server - How launch IE browser from client machineBlazor 服务器 - 如何从客户端计算机启动 IE 浏览器
【发布时间】:2021-04-20 15:24:14
【问题描述】:

我在 EDGE 中运行了新的 Blazor Server 应用程序,它需要在 IE 中启动另一个旧应用程序。我们如何使用运行在客户端机器上的 Blazor Server 应用程序的 URL 启动 IE 浏览器?我以前在 asp.net 期间使用 window.open 使用 JavaScript。但是不能保证 IE 会用 window.open() 打开

【问题讨论】:

  • 您不能在浏览器(例如 Edge)中指示浏览器在其他浏览器 (IE) 中打开 URL。
  • 我同意下面的答案。我们需要创建一个 URL 协议,以便我们可以在 JavaScript 中使用它来打开 IE。我们无法在代码中直接从 Edge 中打开 IE。您也可以参考this thread了解更多信息。

标签: asp.net-core internet-explorer blazor blazor-server-side


【解决方案1】:

使用

<A HREF="microsoft-ie:http://www.itworld.com/blog/readme-file">Open README file with IE</A>

了解更多:

<A HREF="microsoft-edge:http://www.itworld.com/blog/readme-file">Open README file with Edge</A>

https://stackoverflow.com/a/53958628/3728901

https://www.computerworld.com/article/3008858/how-to-open-specific-web-browsers-using-hyperlinks.html

https://docs.microsoft.com/en-us/windows/uwp/launch-resume/launch-default-app

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-10-29
    • 1970-01-01
    • 2021-04-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多