Firefox's pageshow and pagehide events not DOM2 events-compatible?
Wednesday, March 14, 2007 4:27:35 PM
I tried
document.addEventListener( 'pageShow', function(e){ log('pageshow fired'); }, false );
document.addEventListener( 'pageHide', function(e){ log('pagehide fired'); }, false );
No go. Then I tried window.addEventListener but that doesn't work either. Finally, I looked at the sample code and noticed it only shows DOM0-style event handlers -
<body onPageShow="...".
Really?? That makes the events pretty useless. I would like Opera to support similar events but Firefox's implementation looks too broken to copy. Tell me I'm missing something..








Mark 'Tarquin' Wilton-Jonestarquinwj # Wednesday, March 14, 2007 5:47:12 PM
João EirasxErath # Wednesday, March 14, 2007 8:15:05 PM
sypasche # Wednesday, March 14, 2007 8:40:54 PM
window.addEventListener( 'pageshow', function(e){ log('pageshow fired'); }, false );
window.addEventListener( 'pagehide', function(e){ log('pagehide fired'); }, false );
Hallvord R. M. Steenhallvors # Thursday, March 15, 2007 12:52:34 PM