HTML5-History-API icon indicating copy to clipboard operation
HTML5-History-API copied to clipboard

hashchange event wont trigger in IE9

Open ottendennis opened this issue 9 years ago • 0 comments

history.zip

When i click the "item" button in IE9, i expect the hashListener to be executed. I think it's caused by L445 Removing this line fixes the problem, but i guess it's required for something else ;)

<a href="#item">Item</a>

<script> var hashListener = function () { console.log('hash change!'); }; window.addEventListener('hashchange', hashListener); </script>

ottendennis avatar Dec 13 '16 14:12 ottendennis