Firefox 中到 Windows 共享的超链接
我在创建 Windows 共享的超链接时遇到问题,该链接在 Firefox 和 IE9 中正常工作。
原来的行是这样的:
<a href="\\10.1.3.33\sharename\filename.txt" target="_new">Link</a>
This Worksright in IE9, and opens the file as you will see。但是,这似乎在 Firefox 中不起作用,因为它只是将上述内容附加到根目录,因此它最终会查找:
/\10.1.3.33/sharename/filename
我已按照某人的建议尝试并附加 file://到路径名,但这似乎不会在 Firefox 中加载任何内容,但在 IE 中可以工作。
任何人都可以建议我应该使用什么来获取在所有浏览器中工作的网络共享的链接?
非常感谢,编辑
I am having trouble creating a hyperlink to a windows share, that works correctly in firefox and IE9.
The original line was this:
<a href="\\10.1.3.33\sharename\filename.txt" target="_new">Link</a>
This works correctly in IE9, andopens the file as you would expect. However, this does not seem to work in firefox, as it just appends the above to the root directory, so it ends up looking in:
/\10.1.3.33/sharename/filename
I have tried as someone suggested and appending file:// to the pathname, but this does not seem to load anything in firefox, but does work in IE.
Can anyone advise on what I should be using the get a link to a network share working in all browsers?
Many thanks, Eds
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
相信这是 Firefox、Chrome 和 Safari 中的一项安全功能。不要认为有解决方法。
Believe this is a security feature in Firefox, Chrome and Safari. Don't think there is a workaround.
解决了同样的问题:
IE & Chrome:
Firefox:
但是,如果您的网络被视为“互联网区域”,您将无法在其中任何一个中打开它。
Had the same issue solved:
IE & Chrome:
Firefox:
However, if your web is considered as "internet zone", you will NOT be able to open it in none of them.