title: Image onclick not working
body: <p>I have an image which is set relative to a background image.
  I want to call a function on the click but i seem to have been facing a problem.
  The hyperlink seems to be working but the function is not being called.
  This is how my code looks like</p>
  
  <pre><code>&lt;img src=".."  width="100%" height="80"   id="ril_logo"/&gt;
       &lt;div id="logo-wrapper1"&gt;
      &lt;img src="..."  width="5%" height="45"/&gt;
       &lt;/div&gt;
       &lt;div id="logo-wrapper2"&gt;
      &lt;a href="#"&gt;
              &lt;img id="charger" onclick="abc();"  src=".."  width="4%" height="50" /&gt; 
      &lt;/a&gt;
       &lt;/div&gt;
  
  
  
  function abc()
  {
          alert();
  }
  </code></pre>