HTML 文件:// 链接:从 Chrome 浏览器中打开

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19446357/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 14:34:30  来源:igfitidea点击:

HTML file:// links : open in explorer from Chrome

htmlfilegoogle-chromeexplorer

提问by Nicolas Thery

I have an html file with links like that :

我有一个带有这样链接的 html 文件:

<a href="N:\folder1\folder2">folder name</a>

I would like that this link opens explorer instead of a custome chrome file html based browser. This works from IE btw.

我希望此链接打开资源管理器,而不是基于客户的 chrome 文件 html 浏览器。这适用于 IE 顺便说一句。

Thank you ! Nicolas.

谢谢 !尼古拉斯。

回答by ediblecode

For Chrome, Safariand Operathis isn't possibledue to their security model. However, there is somewhat of a solution for Chromein that it's possible but it has two requirements:

对于Chrome,由于它们的安全模型SafariOpera是不可能的。但是,有一些解决方案Chrome,因为它是可能的,但它有两个要求:

  1. You need to get the user to install this Chrome extension
  2. It must be over https://
  1. 您需要让用户安装此 Chrome 扩展程序
  2. 应该结束了 https://

You will probably encounter the same problem for Firefoxsince it usually requires LocalLink.

您可能会遇到同样的问题,Firefox因为它通常需要LocalLink.

Further reading

进一步阅读