Firefox's pageshow and pagehide events not DOM2 events-compatible?
Wednesday, 14. March 2007, 16:27:35
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="...".










tarquinwj # 14. March 2007, 17:47
xErath # 14. March 2007, 20:15
sypasche # 14. March 2007, 20:40
window.addEventListener( 'pageshow', function(e){ log('pageshow fired'); }, false );
window.addEventListener( 'pagehide', function(e){ log('pagehide fired'); }, false );
hallvors # 15. March 2007, 12:52