title: Pass "this.value" to addEventListener Function
body: <p>I'm developing a Chrome plugin,The situation is like i have few images like this in option page.</p>
  
  <pre><code>&lt;img src="some.jpg" class="same" id="231"&gt;
  &lt;img src="some.jpg" class="same" id="234"&gt;
  &lt;img src="some.jpg" class="same" id="1324"&gt;
  &lt;img src="some.jpg" class="same" id="123"&gt;
  </code></pre>
  
  <p>I'm doing this to add Eventlistener on "onclick" event on above images</p>
  
  <pre><code> var a = document.getElementsByClassName("same");
    for (var i = 0;i&lt;=a.length;i++)
    {
      a[i].addEventListener('click', test);
  
    }
  </code></pre>
  
  <p>So,I want when someone will click on any images i wanna pass the "id" (this.id)of the clicked image to any function in this case its test().</p>
  
  <p>Thanks in Advance,</p>