Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

href - Hypertext reference... Minus the hypertext....

Status
Not open for further replies.

khanza

Technical User
Feb 20, 2003
70
US
Well, I'm doing an intranet site for a local company, and it includes links to files on other servers.....

I used the code
Code:
<a href="\\servername\path\filename.doc">Click here</a>

It doesn't work. When I hover my mouse over the link it shows the url at the bottom and on the links that don't work it says And on the ones that does work it says
File:\\servername/path/filename.doc

This leads me to believe that the href was the wrong tag, even more so since href stands for hypertext reference.... So how do I do a reference without the hypertext?

How do I fix it?


Thanks!
Alex
 
Use File
<a href="file://servername/path/filename.doc">here</a>
like so.

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
DOH! I knew that.... lol, i feel so stupid now, sorry!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top