Remove/avoid adding target link to URL
This one may be simple for the jQuery/JavaScript gurus here, but I just
can't find a solution for it around the web.
Case
I have a link at the bottom of a page that says Back to Top, the link is
simply a target link like this:
<a href="#top" class="standard">Back to Top</a>
So when you click it, it jumps to the top of page. Simple.
Problem
When the target link is clicked, the id #top is added to the URL of the
page, ie:
http://website.com/about-us/#top
Question
Is there a way to remove or avoid getting that id #top added to the URL of
the page but retain the functionality of the page jumping to the top?
Any help with this is greatly appreciated.
Sunday, August 25, 2013
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment