title: How Call link tag by id by javascript?
body: <pre><code>   &lt;img src="images/icon2.png" border=0 onClick="window.document.getElementById('loadimg')"&gt;
  
  &lt;a href="images/img.jpg" id='loadimg'&gt;&lt;/a&gt;
  </code></pre>
  
  <p>i want when click the image will active the link by id='loadimg'
  how can i do i try write onClick="window.document.getElementById('loadimg')" but not work</p>
  
  <p>Than you</p>