I have done a number of experiments and I found ./ only works in the root directory. Elsewhere you must use ../.././ etc.
I could not repeat my strange results of jumping home successfully with ./ from E:\mindprod\jgloss\jgloss.html
The catch is, browsers don't understand what it means when serving the website from local files -- what you do when composing or when you distribute mirrors. I had to put it all back to index.html (not hard, all the code was in one spot).
If you were very keen on using it, you might use a local Tomcat server running on your own PC whose job is to make the website behave identically locally and on the web, including ads, google 1+ etc.
The essay htlml validator directed me to made it sound as if you could put ./ on ANY page at any depth and it would go home. For that to work, there would have to be some mechanism for a browser to figure out which directory is home. I could not find one.
I work with urls of the form jgloss/jdk.html
in my markup and mechanically convert them to ../.. relative links.
The corresponding url on the website is http://mindprod.com/jgloss/jdk.html
The corresponding local file is called e:\mindprod\jgloss\jdk.html
I have often wished I could directly use urls like /jgloss/jdk.html
in my markup, but they do not work.
Does that format have an official name?
Have you ever thought of a mechanism so that a browser could handle a local website with more aplomb.
There would be a file you configure to use the files for local use. It would contain things like
where the home directory is.
where the corresponding web version is.
the extension to mime tables.