|
Yes I know about that but what I wanted to do is to dynamically set an additional event handler, which you can not do using javascript event handler properties.
Cause if you have
<img id="slika" onclick="alert('a');">
and then javascript:
document.getElementById('slika').onclick = function() {alert('b')}
and then click on the image, you would get only alert('b') but not both.
I know the solution now. Using addEventHandler or attachEvent (IE) you can accomplish this.
|