This example uses the pageshow and pagehide events. Navigate to another page and then hit the Back button to see it in use.