How can I create a link to a local file on a locally-run web page?

I’d like to have an html file that organizes certain files scattered throughout my hard drive. For example, I have two files that I would link to: C:\Programs\sort.mw C:\Videos\lecture.mp4 The problem is that I’d like the links to function as a shortcut to the file. I’ve tried the following: <a href=”https://stackoverflow.com/questions/18246053/C:\Programs\sort.mw”>Link 1</a> <a href=”C:\Videos\lecture.mp4″>Link 2</a> … Read more

Valid to use (anchor tag) without href attribute?

I’ve been using Twitter Bootstrap to build a site, and a lot of its functionality depends on wrapping things in <a>, even if they’re just going to execute Javascript. I’ve had problems with the href=”#” tactic that Bootstrap’s documentation recommends, so I was trying to find a different solution. But then I tried just removing … Read more

How to scroll an HTML page to a given anchor

I’d like to make the browser to scroll the page to a given anchor, just by using JavaScript. I have specified a name or id attribute in my HTML code: <a name=”anchorName”>..</a> or <h1 id=”anchorName2″>..</h1> I’d like to get the same effect as you’d get by navigating to http://server.com/path#anchorName. The page should be scrolled so … Read more

How to handle anchor hash linking in AngularJS

Do any of you know how to nicely handle anchor hash linking in AngularJS? I have the following markup for a simple FAQ-page <a href=”#faq-1″>Question 1</a> <a href=”#faq-2″>Question 2</a> <a href=”#faq-3″>Question 3</a> <h3 id=”faq-1″>Question 1</h3> <h3 id=”faq-2″>Question 2</h3> <h3 id=”fa1-3″>Question 3</h3> When clicking on any of the above links AngularJS intercepts and routes me to … Read more