Social Question

HungryGuy's avatar

What's the correct syntax for linking to an HTML page on your local C: drive from an <A HREF=> tag in a HTML page on your desktop?

Asked by HungryGuy (16039points) May 14th, 2011

I have an HTML page on my desktop that I edit myself that has links to my own sites, as a two column list, with the local copy on my C: drive (that I develop on) on the left side and the online copy (on the public www) on the right side.

With my previous computer running Windoze XP and Internet Exploder, I used to code for the local link: <A HREF=“c:/mysite/index.htm”>My Site</A>

But that no longer works with Windoze 7 and Firefox. Instead, I get an OK box that says, “Firefox doesn’t know how to open this address, because the protocol ( c ) isn’t associated with any program.”

So what do I put in the HREF to make it a link to an HTML page on my local C: drive?

I’d like to use a syntax that’s compatible with both Firefox and Internet Exploder, but I know that’s probably not possible.

Observing members: 0 Composing members: 0

7 Answers

krrazypassions's avatar

try using \ instead of / for starters…

HungryGuy's avatar

@krrazypassions – I tried that. No difference. BTW, in Windoze land, the / is used to separate nodes, unlike Linux and Web land where \ is used.

jaytkay's avatar

I dragged a file from Windows Explorer into Firefox and the address bar shows this:

So perhaps:
<A HREF=“file:///c:/mysite/index.htm”>My Site</A>

HungryGuy's avatar

@jaytkay – Yes! That works in both Firefox and Internet Exploder! Thanks a bunch!!!

WasCy's avatar

I’ve been using TiddlyWiki for most of the past year, and plan to use it until something better comes along. I keep bookmarks for Chrome, FireFox and Exploder there, as well as links to shortcuts on disk, other files, etc. The best thing, from my point of view, is that I don’t have to fool with HTML and tagging at all. (Of course the tiddly syntax takes a bit of getting used to, but it’s pretty much plain text.)

HungryGuy's avatar

@WasCy – I’m an old school programmer. I write all my HTML, Javascript, and CSS by hand in a simple line editor called SPF/PC.

Answer this question




to answer.
Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
Knowledge Networking @ Fluther