title: Change image with href in java script
body: <pre><code>&lt;a href="#" id=BigSwatch&gt;&lt;img src="addtocart.png" onclick="SwapLink('ekhle.html');"
   onClick=display('pleasewait.png') /&gt;&lt;/a&gt;
  </code></pre>
  
  <p>In this coding, I want change image and change href also.
  here when user click on <strong>addtocart.png</strong> image, I want to change image to <strong>pleasewait.png</strong> and when user click on <strong>pleasewait.png</strong> image, I want to change href like "<strong>url2.html</strong>", but when i apply my coding image changed but <strong>url2.html</strong> page also redirect directly.</p>