Skip to content Skip to sidebar Skip to footer

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);

});

Solution 2:

Issue might be due to duplicate id #illegal, from your website code I can see this id used twice. Remove unwanted or use unique id and try. It should work

enter image description here

Post a Comment for "Anchor Tag In Chrome Not Working Properly?is This A Chrome Bug?"