The code:
if(e.target.className.indexOf('box') !== -1)
e.target.parentNode.className = 'boxW';
gets me this error in Internet Explorer 9:
SCRIPT5007: Unable to get value of the property ‘className’
Same thing happens for the parentNode property (if I remove the IF)…
I don’t know how it is with IE 9 but other version have used
e.srcElementinstead ofe.target.So maybe you can do it like this: