Answers for "javascript location anchor"

2

scroll jquery to anchor

$('html,body').animate({ scrollTop: $("#anchor").offset().top }, 'slow');
Posted by: Guest on June-12-2020
0

js click anchor

// Simulating click after 3 seconds
setTimeout(function(){
  document.getElementById('fooLinkID').click();
}, 3 * 1000);
Posted by: Guest on October-15-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language