ChrisB: aObj.onclick = function() {alert(this);}

Beitrag lesen

Hi,

document.getElementsByTagName('a').onclick = function() { alert(this); }

Du kannst auf nodeLists klicken? :-)

MfG ChrisB

--
„This is the author's opinion, not necessarily that of Starbucks.“