document.addeventlistener of javascript is not working for back button in chrome -


in chrome, when first load page following code console message

if (document.addeventlistener){     console.log("asf");     document.addeventlistener('mousemove', abc, false);  } else if (document.attachevent){     console.log("as1f");     document.attachevent('onmousemove', abc); } 

but whenever go / visit next page above codes , press button revisit page not console message.

for understood question code showling message in console time go , forward on chrome. notifying error abc function not in code.

check tested  [jsfiddle](http://jsfiddle.net/gtbrh/). 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -