1
I was able to do it by clicking on some link etc, but I would like when entering a page the vertical scroll bar of the browser to descend to a specific element, without having to click on anything.
1
I was able to do it by clicking on some link etc, but I would like when entering a page the vertical scroll bar of the browser to descend to a specific element, without having to click on anything.
5
Very simple, here it comes:
$(document).ready(function () { //Função para que o script comece quando a página carregar
$('html, body').animate({
scrollTop: $('DIV PARA QUAL A PÁGINA IRÁ').offset().top
}, 'slow');
});
Code taken from the https://stackoverflow.com/questions/18103534/scroll-to-specific-div-on-page-load
Exactly, it worked perfectly. Thank you.
@user49454, when an answer works perfectly for you, you can bookmark it, so you will know that your problem is solved. :)
how do you favorite an answer?
Browser other questions tagged jquery
You are not signed in. Login or sign up in order to post.
without scrolling effect, you can do so tb http://answall.com/questions/82850/load-p%C3%a1gina-e-scroll-automatically-for-a-certain-element
– Bacco