Ricardo Luiz Vieira Posted January 31, 2012 Report Share Posted January 31, 2012 Gostaria de saber como faz a barra de rolagem subir ao topo da página, sem utilizar âncoras? Quote Link to comment Share on other sites More sharing options...
0 Mad Jonathan Posted January 31, 2012 Report Share Posted January 31, 2012 <script type='text/javascript'> // Cordenadas var x = 0; var y = 0; window.scrollTo(x, y); </script>Como quer que vá pra cima, é só usar as coordernadas x = 0 e y = 0. Quote Link to comment Share on other sites More sharing options...
0 Ricardo Luiz Vieira Posted January 31, 2012 Author Report Share Posted January 31, 2012 Funcionou, obrigado! Quote Link to comment Share on other sites More sharing options...
Question
Ricardo Luiz Vieira
Gostaria de saber como faz a barra de rolagem subir ao topo da página, sem utilizar âncoras?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.