JavaScript
What will ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
What will be the result of execution following code snippet?
$(wіndоw).scrollTоp(50);
Sets the vertical scrollbar position to 50px from top of the page
Scroll position will be moved down for 50px
Scroll position will be moved up for 50px
nothing will happend
Explanation
The scrollTop() method sets or returns the vertical scrollbar position for the selected elements. In our code example, the vertical scroll position will be set to 50px from top of the page.
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
J
avaScript
Quiz
Login to learn JavaScript
or
Read more about
JavaScript Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment