Unable to start

I came across events on a page / page, but I'm not sure how they work.

I registered them on document and then on the window object, but they never started.

I expected that they would start after loading the page to view the pages, and when I go to another page to view the page, but this did not happen.

Where can I find more information about these events?

+2
javascript jquery javascript-events
May 4 '15 at
source share
1 answer

Your question was pretty vague, but I think 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 that way, but it is similar to how you use them.

 window.addEventListener("pageshow", function(evt){ clearTimeout(timer); }, false); window.addEventListener("pagehide", function(evt){ clearTimeout(timer); }, false); 
+1
May 04 '15 at 2:09
source share



All Articles