I have the following handler:
$(window).bind(\'pageshow\', function() { alert(\"back to page\"); });
When I navigate away from the
What you're doing there is binding the return value of alert("back to page") as a callback. That won't work. You need to bind a function instead:
alert("back to page")
$(window).bind('pageshow', function() { alert("back to page"); });