How to trigger the scroll event in pure javascript without using third-party libraries.
For example, I can trigger such an event as click() on elements, and because of this, a trigger will trigger on a click on this element. Also with .focus() and .blur() events.
How to do the same (similar) to scroll .
I tried to assign the scrollTop value to the scrollTop first by +1 , and immediately by -1 , it worked, but I think this is a dirty option.
.change()event on a field, this does not mean that the value has changed in it. - Vasily Barbashev