You can listen for the click event and call preventDefault
to stop the browser from setting the hash.
Example with jQuery:
$('.mylink').click(function(event){
event.preventDefault();
});
You can listen for the click event and call preventDefault
to stop the browser from setting the hash.
Example with jQuery:
$('.mylink').click(function(event){
event.preventDefault();
});