pageremove event

Triggered just before the framework attempts to remove an external page from the DOM.

By default, the framework removes any non active dynamically loaded external pages from the DOM as soon as the user navigates away to a different page. The pageremove event is dispatched just before the framework attempts to remove the page from the DOM.

This event is triggered just before the framework attempts to remove an external page from the DOM. Event callbacks can call preventDefault on the event object to prevent the page from being removed.

Note: The triggering of this event is deprecated as of jQuery Mobile 1.4.3. It will no longer be triggered in 1.6.0.

The replacement for pageremove is the pagecontainer widget's pagecontainerremove event. In jQuery Mobile >= 1.4.3, the two events are identical except for their name and the fact that pagecontainerremove is triggered on the pagecontainer, whereas pageremove is triggered on the page.

jQuery( ".selector" ).on( "pageremove", function( event ) { ... } )
doc_jQuery
2016-03-28 15:04:58
Comments
Leave a Comment

Please login to continue.