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

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -