This quiz goes to full-screen once you press the Start button, or any Next button after exiting the quiz window.
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 pageXOffset and scrollX is older than the other?
The pageXOffset property is available on all element nodes. True or false?
How to get the vertical scroll offset of a given element?
For an element, its vertical scroll offset can be determined by querying the scrollTop property. However for the case of window, this thing is done using scrollY or pageYOffset.
Is there any way to programatically change the scroll offset of an element. If yes, then what is it?
The 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(), scrollBy() and scrollTop.
The scroll() and scrollTo() methods do the same thing. True or false?
scroll() and scrollTo() do exactly the same thing. It's just that scroll() is a bit older compared to scrollTo().
Is the following code correct to navigate the HTML document to a vertical scroll offset of 10px?
window.scrollY = 10;
What does it mean to debounce the onscroll handler?