It seems 'onhashchange' in window
was true
because I was using IE8 in IE7 mode instead of real IE7
But I have just tried it with IETester and 'onhashchange' in window
gives false
.
Now, I wonder why does IE 8 have IE7 mode if it can't emulate IE7 very well