When linking to #, stay in current position on page [duplicate]
问题 This question already has answers here : How do I stop a web page from scrolling to the top when a link is clicked that triggers JavaScript? (15 answers) Closed 5 years ago . I have an 'a' link on my website that has a jQuery function attached to it inside my page. This link's 'href' is '#', as the page does not need to reload for my jQuery. However, whenever the link is clicked, it takes you to the top of the page again. This is annoying, as the link is quite far down, so you have to find