Anchor Tag In Chrome Not Working Properly?is This A Chrome Bug?
I have a site http://rethinkwaste.com.au/ . When clicking on the very first slide I have a anchor set up On the first load out in google chro
Solution 1:
I think its a Chrome bug. So After some searching i found this solution.
jQuery(window).load(function(){
var hashNum = 0;
if (window.location.hash != ''){
hashNum = window.location.hash.replace("#illegal", "");
console.log('hashNum: ' + hashNum);
};
hashMenu = jQuery("#illegal").offset().top;
jQuery('html,body').animate({
scrollTop: hashMenu
}, 1000);
});
Post a Comment for "Anchor Tag In Chrome Not Working Properly?is This A Chrome Bug?"