How do I make a file:// hyperlink that works in both IE and Firefox?

前端 未结 5 753
太阳男子
太阳男子 2020-12-30 08:50

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 f

5条回答
  •  忘掉有多难
    2020-12-30 09:23

    In case someone else finds this topic while using localhost in the file URIs - Internet Explorer acts completely different if the host name is localhost or 127.0.0.1 - if you use the actual hostname, it works fine (from trusted sites/intranet zone).

    Another big difference between IE and FF - IE is fine with uris like file://server/share/file.txt but FF requires additional slashes file:////server/share/file.txt.

提交回复
热议问题