FREE Web Template Download
HTML CSS JAVASCRIPT SQL PHP BOOTSTRAP JQUERY ANGULARJS TUTORIALS REFERENCES EXAMPLES Blog
 

PageTransitionEvent persisted Property

Event Object Reference Event Object

Example

Find out whether the page was cached by the browser:

function myFunction(event) {
    alert(event.persisted);
}
Try it Yourself »

Definition and Usage

The persisted property returns a Boolean value that indicates if the webpage is loaded directly from the server, or if the page is cached, when an onpageshow or onpagehide event occurs.

This property is read-only.


Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
persisted Yes 11.0 Yes 5.0 Yes

Syntax

event.persisted

Technical Details

Return Value: A Boolean, indicating whether the webpage is loading from a cache.

Possible values:

  • true - The page is cached by the browser
  • false - The page is NOT cached by the browser

Related Pages

HTML DOM reference: The onpageshow Event


Event Object Reference Event Object