Can you use the this tag for the onclick on an HTML tag? Here's my JS code...
this
function changeImage() { this/*<-- right there <--*/.src=a;}document.getElementsByTagName('img').onclick = function(){ changeImage();} ;
Am I doing something wrong?
Aucun commentaire:
Enregistrer un commentaire