Cross-browser link to file on local system

前端 未结 2 1402
醉话见心
醉话见心 2020-12-01 23:22

I would like to make a link from a web page to a file on a local filesystem and make it work in all browsers (or at least in Internet Explorer, Firefox and Chrome).

相关标签:
2条回答
  • 2020-12-02 00:05

    Links to local files on pages that were retrieved via HTTP(S) are deliberately disabled in Mozilla/Firefox, because they can be a security risk, and have been used in attacks in the past.

    You can override this behaviour, however. For details, see this article in MozillaZine.

    0 讨论(0)
  • 2020-12-02 00:14

    try prefixing your url with file:///

    0 讨论(0)
提交回复
热议问题