javascript - onhashchange event casuing invalid markup validation -
hope don't sound idiot posting using:
<body onhashchange="hashchangehandler();">
is causing invalid markup validation.
is there somewhere else can put other body tag?
i know there's window.onhashchange = funcref;
or window.addeventlistener("hashchange", funcref, false);
have no idea put it, if makes sense.
the site still works invalid markup flag bugging me!
i know there's … have no idea put it, if makes sense.
in <script>
element. that's all.
<script> function thingy(e) { alert('changed'); } window.addeventlistener("hashchange", thingy, false); </script>