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> 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -