I started a new project for my college and my code have a problem.
When I'm using Smooth Scroll to go to another anchor, the #name_of_the_anchor link appears on status bar.
The Smooth Scroll only works if I use "a href", so, the status bar will ever show the link of every div.
The Javascript:
$(document).ready(function(){
$('a[href^="#"]').on('click',function (e) {
e.preventDefault();
var target = this.hash,
$target = $(target);
$('html, body').stop().animate({
'scrollLeft': $target.offset().left
}, 400, 'swing');
});
});
How can I change this code to not show the links on status bar, but keeping the Smooth Scroll on my site? Thank you, guys!