I want to do scrollTop after I click a button. Only not on the page that I am, but on the page that will open.
My HTML:
<a href="/clinicas" class="saibaMais cp margin-top-40 margin-bottom-25 f-left unidadesClick">
<div class="saibaMaisText">saiba mais</div>
<div class="saibaMaisHover">saiba mais</div>
</a>
And my Jquery:
$('.unidadesClick').click(function () {
$('html, body').stop().animate({
scrollTop: '620px'
}, 700);
});
As it is, it does the ScrollTop on the same page. How do I make an effect when I'm inside% / clinics ?