Solved

HTML question about HREF=file:     It's pointing to an old location!

Posted on 2013-11-17
4
322 Views
Last Modified: 2013-11-17
I uploaded a simple web page "A" but a link to page "B" isn't working and when I hover my mouse over the hyperlink I see the school student lab mapped drive where I created the page.  This doesn't make sense.  why would it transfer that to my web page  I'm now working on this site at home.

Needless to say, my simple link to another page isn't working.
1.  What is this bad href=  what does it stand for?
2.  How to fix?

  href="file:///\\LAB01\Users\BroTrofski\Private\site\contact.htm"
0
Comment
Question by:brothertruffle880
  • 2
4 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
Comment Utility
Your link should look like this

<a href="/contact.htm">My Link</a>

This would look for contact.htm in the sites root folder.

You cannot link to local resources from an external website.
0
 

Author Comment

by:brothertruffle880
Comment Utility
Gary:
I didn't create that link.   I just saved the web page file as a simple HTML file and the software did it.
0
 
LVL 58

Expert Comment

by:Gary
Comment Utility
What software
0
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
Saving the file to your own computer makes it a local file.  Where is the confusion?
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now