In a Markdown Page (Microsoft TFS Wiki)
I try crate A tag for file
link:
<a href="file:///C:/temp\file.txt">file.txt</a>
On click (Chrome), I got
about:blank#blocked
It's not a Chrome-specific issue with protocol file:, Opera and Firefox display blank page too.
When I want to browse HTML files on my localhost, I have to access them via protocol http: instead.
For instance when I want to see C:\temp\file.html
in Chrome, I will make a virtual directory in my local Apache host:
<VirtualHost *:80>
DocumentRoot C:/temp
ServerName temp.localhost
</VirtualHost>
and add this line to %SystemRoot%\System32\drivers\etc\hosts
127.0.0.1 temp.localhost
Now I can see the file in browsers at URL http://temp.localhost/file.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With