How to open local file in browser

后端 未结 4 1216
不思量自难忘°
不思量自难忘° 2020-12-11 03:52

Website has tag, where href is path to local file. For example, Link. It doesn\'t work.

How to do it right? :)

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-11 04:43

    Use a file URI.

    Can’t test it (have no Windows/IE), but it should be:

    file:///D:/test.txt
    

    See also:

    • IEBlog: File URIs in Windows

提交回复
热议问题