javascript location anchor code example
Example 1: scroll jquery to anchor
$('html,body').animate({ scrollTop: $("#anchor").offset().top }, 'slow');
Example 2: js click anchor
// Simulating click after 3 seconds
setTimeout(function(){
document.getElementById('fooLinkID').click();
}, 3 * 1000);