Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery: What does $("html") mean?

What does $("html") mean?

i.e. $("html").scrollTop(0);

like image 823
Ahmed Atia Avatar asked Mar 17 '26 14:03

Ahmed Atia


1 Answers

It means to select the <html> element in the page, and scroll to it's top position. Since that's the very top of the document, you're scrolling the browser all the way up.

like image 159
Nick Craver Avatar answered Mar 20 '26 06:03

Nick Craver