Are you ready?
1 questions to solve.
- This quiz goes to full-screen once you press the Start button.
- At the end of the quiz, you are able to review all the questions that you answered wrong and see their explanations.
Which of the properties
scrollXis older than the other?
pageXOffsetis an older property if we compare it to
pageXOffsetproperty is available on all element nodes. True or false?
pageXOffsetis only available on the
How to get the vertical scroll offset of a given element?
For an element, its vertical scroll offset can be determined by querying the
scrollTopproperty. However for the case of
window, this thing is done using
Is there any way to programatically change the scroll offset of an element. If yes, then what is it?
scroll()method is one of the ways to programatically change the vertical scroll offset of an element. This goes with choice C). The other ways are
scrollTo()methods do the same thing. True or false?
scrollTo()do exactly the same thing. It's just that
scroll()is a bit older compared to
Is the following code correct to navigate the HTML document to a vertical scroll offset of 10px?
window.scrollY = 10;
Assigning a value to the property
What does it mean to debounce the
Debouncing means to wait for a certain amount of time before firing a function from within the handler of the