Use either target property or srcElement for IE support.