.scroll()


.scroll( handler )Returns: jQueryversion deprecated: 3.3

Description: Bind an event handler to the "scroll" event, or trigger that event on an element.

This API is deprecated.

Instead of .scroll( handler ) or .scroll( eventData, handler ), use .on( "scroll", handler ) or .on( "scroll", eventData, handler ), respectively.

Instead of .scroll(), use .trigger( "scroll" ).