javascript - IE js error with event.target !== -


i have following js code:

if ( event.target !== self.element[ 0 ]){   ...  }  

in ie browser error: object doesn't support property or method

when write code :

if ( event.target == self.element[ 0 ]){   ...  }  

i don't js problem

what not supported ie? !==?!!

well there's no "target" property in ie; it's event.srcelement. try

if ((event.target || event.srcelement) !== self.element[0])  

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -