<a href="http://file://///&gt; convert file:// to file// ---remove colon

时间:2016-04-27 08:38:37

标签: html href

<p>I need to open filelink (network share in local) in the browser. </p> <p>I use such code:</p> <pre><code><a href=" http:="" file:="" server="" localfolder">="" <="" code="">

It open link in the browser but convert it to such format: file/////server/localfolder (remove colon).

This way browser don't open local folder. I have tried to change file:///// to file:// or file:/// or file://// . But colon stell removed by browser.

How to solve it?

1 个答案:

答案 0 :(得分:0)

您不能将多个协议定义指定为URL架构的一部分。您也不应该链接到-a,但如果您绝对必须,请按照以下步骤删除last定义:

file://

您可以在以下链接中阅读有关http://协议的更多信息,特别是其实现: