jQuery Mobile pagehide
Event
Example
Display some text information after the old page is hidden following a page transition:
Definition and Usage
The pagehide
event is triggered after the old page is hidden following a page transition.
Related Events:
- pagebeforehide - Triggered before the old page is hidden following a page transition.
- pagebeforeshow - Triggered before the new page is shown following a page transition.
- pageshow - Triggered after the new page is shown following a page transition.
Note: This event is triggered every time the page transition starts/stops.
Syntax
Trigger the event for all pages in jQuery Mobile:
Trigger the event for a specified page:
Parameter | Description |
---|---|
function(event, data) | Required. Specifies the function to execute when the pagehide event is triggered. The function contains the following two parameters: Event object - Includes any jQuery event properties (event.target, event.type, etc.). For more information, refer to the jQuery Event Reference. Data object - Contains properties such as nextPage , the transition page to return to. |
page | Optional. Specifies the page ID to which the pagehide event is directed. For internal pages, use #id. For external pages, use externalfile.html. |