Link to other document not working

gameyharp's Avatar
Go4Expert Member
I'm trying to make a link from one local document to another.

<p>
<a href="C:\Documents and Settings\********\Desktop">
This text</a> is a link to my other html document.
</p>

When i open this with firefox and i click on that link it gives me this message "Firefox doesn't know how to open this address, because the protocol(c) isn't associated with any program"
Now i went into the properties of for the document that it won't open and i put firefox as the program it should open with. Any help?
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
The address should be file :///C:/Documents and Settings/********/Desktop
gameyharp's Avatar
Go4Expert Member
I changed it to that and now it doesn't give me the error anymore but it gives me a page cannot be found page. I checked the filepath but i still get the error. Can you please post the exact code needed to do this, thank you in advance.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Exact code can be posted once I know your file path and html file path.
gameyharp's Avatar
Go4Expert Member
The filepath for the document is:
C:/Documents and Settings/*******/Desktop/showingwork2.
The way i have it in the html document is:
<p>
<a href="C:/Documents and Settings/seautio/Desktop">
This text</a> is a link to my other html document.
</p>.

Please help me out.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
I need the file name path.
gameyharp's Avatar
Go4Expert Member
C:\Documents and Settings\*******\Desktop\showingwork2
Is the filenames path.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
It looks like a folder name but anyway here is the stuff.
HTML Code:
<p>
<a href="file:///C:/Documents and Settings/shabbir/Desktop/filename.jpg">
This text</a> is a link to my other html document.
</p>.
Rexy93's Avatar, Join Date: Oct 2007
Go4Expert Member
If you put the two documents
Rexy93's Avatar, Join Date: Oct 2007
Go4Expert Member
STUPID COMPUTER!!!! KEEPS ADDING POSTS WHEN THERE NOT SPOSE TO!!!!
Sorry about the anger just it is annoying me.
Delete above post please.


If you put the two documents in the same file you can do this.
Code:
<a href="Name of document">Text for link</a>
For a example
Code:
<a href="Example.html">Click here for more info</a>