title: JavaScript addEventListener on document.images
body: <p>I am trying to dynamically change a picture when I click on it, via the addEventListener. I have the pictures in the documents.images array. I already have a function written to switch the images. The problem I am having is binding this in the event that I click on an image.</p>
  
  <p>This is what I tried</p>
  
  <pre><code>document.images[i]src.addEventListener("click", MakeMove, false);
  </code></pre>