Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Design, HTML And CSS Forums (http://www.go4expert.com/forums/web-design-forum/)
-   -   Link to other document not working (http://www.go4expert.com/forums/link-document-t6966/)

gameyharp 22Oct2007 17:57

Link to other document not working
 
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 22Oct2007 19:15

Re: Link to other document not working
 
The address should be file :///C:/Documents and Settings/********/Desktop

gameyharp 23Oct2007 17:51

Re: Link to other document not working
 
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 23Oct2007 20:02

Re: Link to other document not working
 
Exact code can be posted once I know your file path and html file path.

gameyharp 24Oct2007 17:46

Re: Link to other document not working
 
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 24Oct2007 21:05

Re: Link to other document not working
 
I need the file name path.

gameyharp 26Oct2007 18:01

Re: Link to other document not working
 
C:\Documents and Settings\*******\Desktop\showingwork2
Is the filenames path.

shabbir 26Oct2007 18:46

Re: Link to other document not working
 
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 28Oct2007 13:17

Re: Link to other document not working
 
If you put the two documents

Rexy93 28Oct2007 13:20

Re: Link to other document not working
 
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>


All times are GMT +5.5. The time now is 22:11.