HTML链接到本地​​网络共享 [英] HTML links to local network shares

查看:145
本文介绍了HTML链接到本地​​网络共享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么这些链接不起作用?如果我在FF或Chrome中点击它们,什么都不会发生 - 它甚至不会尝试打开它们!

Why do these links not work? If I click on them in FF or Chrome, nothing happens - it doesn't even try to open them!

<a href="file://someshare/dir/subdir/file.txt">Linky</a>
<a href="file:////someshare/dir/subdir/file.txt"> Linky</a>
<a href="file://\\someshare\dir\subdir\file.txt">Linky</a>

有什么想法?

Any ideas?

推荐答案

一般来说,这是被禁用的,因为它存在安全风险。另请参阅以下问题:
跨浏览器的文件链接本地系统以及由sleske提供的链接这里

In general, this is disabled because it is a security risk. See also this question: Cross-browser link to file on local system, and the link provided by sleske to here.

这篇关于HTML链接到本地​​网络共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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