adding/renaming an id on click
<p>I have the following code:</p>

<pre><code>if (el.nodeName == 'IMG'){

  e1.addEventListener('click', function(e) {
           el.id = this.src;});
}
</code></pre>

<p>any idea why this doesn't work when I click on the image?</p>
