Skip to content

Instantly share code, notes, and snippets.

@06b
06b / <a href="#"> page jump prevention
Created August 20, 2012 14:07
Prevent sending the user back to the top of the page when using hash(#) within the anchor tag
$('a[href$="#"]').on("click", function(e) {
e.preventDefault(); // to remove # from address bar
});