title: JavaScript programming
body: <p>Why Iam unable to change the image source? here is my code
      </p>
  
  <pre><code>&lt;script&gt;
  function changeImage() {
  var image = document.getElementById("myImgId");
  if (image.src.match("C:\Users\USER\Desktop\GRAPHICS\photo2.jpg")) {
      image.src="C:\Users\USER\Desktop\GRAPHICS\photo3.jpg";
  } else {
      image.src="C:\Users\USER\Desktop\GRAPHICS\photo1.jpg";
  }
  }
  &lt;/script&gt;
  </code></pre>