Try scrolling the scroll bar to the div element.
➔ The event is triggered by user or programmatic scrolling.
➔ This event can be used on most HTML elements, such as divs, paragraphs, sections, body elements, or window objects for the entire page.
➔ To use onscroll the element must have an active scrollbar, which can usually be achieved using the CSS overflow property (e.g. overflow: scroll; or overflow: auto;).