Use target instead of srcElement - compatibility.