我如何制作一个文件:/ /超链接在IE和Firefox的作品? [英] How do I make a file:// hyperlink that works in both IE and Firefox?
问题描述
在我的文档网页中,我经常需要提供存储在Intranet上的位置,文件和应用程序(.xbap)的链接。
在IE中,这样的格式可以正常工作:
< a href =file://///company.org/ProjectA/StatsReport>前往资料夹< / a>
< a href =file://///company.org/ProjectA/Dashboard.xbap>运行xbap< / a>
这些链接在IE下都可以正常工作,但是在Firefox中却不行。
有谁知道我可以如何格式化上述链接,以便在IE和Firefox中都能正常工作?
编辑
上面的链接实际上工作,如果我把它们放在本地文件。当他们是网络上的一个html文件的一部分(而不是在我的机器上)时,他们停止工作。在Firefox中必须有某种安全设置来阻止file:///链接的工作来自外部内容? 解决方案
您可以查看此链接,也可以尝试使用UNC路径。
In my documentation web pages, I often need to provide links to locations, files and applications (.xbap) stored on the intranet.
In IE, this works fine with URLs formatted like this:
<a href="file://///company.org/ProjectA/StatsReport">Go to folder</a>
<a href="file://///company.org/ProjectA/Readme.txt">Download file</a>
<a href="file://///company.org/ProjectA/Dashboard.xbap">Run xbap</a>
These links all work fine under IE, but in Firefox they don't.
Does anyone know how I can format the above links to work both in IE and Firefox?
Edit The above link actually work if I put them in a local file. They stop working only in Firefox when they are part of a html file on the network (not on my machine). There must be some kind of security setting in Firefox that prevents file:/// links from working coming from external content?
You could check out this link, or you could try using UNC paths.
这篇关于我如何制作一个文件:/ /超链接在IE和Firefox的作品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!