It is a mispell; in the body's tag, the name of the event is "onpageshow" and no "pageshow".
...
<body onpageshow="alert('Done');">
...
For IE pageshow event is not supported.
i'm using FF 4.0.1
your pageShow event won't fire even in this.
click here
for more information
Update:
pageShow
fire after pageLoad
.
it's better to use onLoad
.
pageShow
should be onpageShow
From my tests:
Your jQuery code never gets executed. You should run it from within jQuery's "ready" event:
$( function() {
$('#mypage').live('pageshow', function (event, ui) {
alert('This page was just hidden: ' + ui.prevPage);
});
});