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
HTML file:// links : open in explorer from Chrome
提问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
, Safari
and Opera
this isn't possibledue to their security model. However, there is somewhat of a solution for Chrome
in that it's possible but it has two requirements:
对于Chrome
,由于它们的安全模型Safari
,Opera
这是不可能的。但是,有一些解决方案Chrome
,因为它是可能的,但它有两个要求:
- You need to get the user to install this Chrome extension
- It must be over
https://
- 您需要让用户安装此 Chrome 扩展程序
- 应该结束了
https://
You will probably encounter the same problem for Firefox
since it usually requires LocalLink
.
您可能会遇到同样的问题,Firefox
因为它通常需要LocalLink
.