T
T
timtimIT2015-10-12 19:17:00
JavaScript
timtimIT, 2015-10-12 19:17:00

Why is the scroll up button not working in mozilla?

Hello.
Why doesn't the following code work in Mozilla Firefox?

$(".scroll-up").click(function(){
//Необходимо прокрутить в начало страницы 
$("body").animate({"scrollTop":0},"slow");
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
holfza, 2015-10-12
@timtimIT

Try like this:
$("html,body").animate({"scrollTop":0},"slow");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question