Easy Tutorial
❮ Event Swiperight Jquerymobile Events Touch ❯

jQuery Mobile pagehide Event

jQuery Mobile Events

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:

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.

More Examples

Related Events Demonstration

Event Object

Data Object


jQuery Mobile Events

❮ Event Swiperight Jquerymobile Events Touch ❯