Skip to content Skip to sidebar Skip to footer

Pageshow/pagehide Events Not Firing

I came across pageshow/pagehide events, but I'm not really sure how they work. I registered them on document, and later on window object, but they never fired. I expected them to

Solution 1:

Your question was quite vague but I think that you can learn a little using this post http://aawaara.com/post/74543339755/smallest-piece-of-code-thats-going-to-change-the

They use them like this, but it seems as the way you are using them

window.addEventListener("pageshow", function(evt){
        clearTimeout(timer);
    }, false);

    window.addEventListener("pagehide", function(evt){
        clearTimeout(timer);
    }, false);

Post a Comment for "Pageshow/pagehide Events Not Firing"