Event Scrollstart
# jQuery Mobile scrollstart Event
[ jQuery Mobile Events](#)
## Example
Alert a message when the page starts scrolling:
$(document).on("scrollstart",function(){
alert("Scrolling started!");
});
[Try it Yourself Β»](#)
* * *
## Definition and Usage
The `scrollstart` event is triggered when the page starts scrolling.
**Note:** Apple devices freeze DOM operations during scrolling and execute these DOM operations in a queue when scrolling ends. We are currently researching methods to allow Apple devices to execute DOM operations before scrolling starts.
**Tip:** This event is usually attached to the document.
**Tip:** The (#) event is triggered when scrolling ends.
* * *
## Syntax
$("_selector_").on("scrollstart",function(event){...})
| Parameter | Description |
| --- | --- |
| function(event) | Required. Specifies the function to run when the scrollstart event is triggered. This function has an optional event object. The event object can be any jQuery event property (e.g., event.target, event.type, etc.). For more information, please refer to the (#). |
* * *

## More Examples
(#)
Count how many times the scrollstart event is triggered.
(#)
Use the event.target property to return the DOM element that triggered the scrollstart event.
* * jQuery Mobile Events](#)
YouTip