consider this code please. A single backslash worked in img tag but not in button tag:
<body>
<h4>This is Me.</h4>
<img src='C:\Users\foo\Pictures\Camera Roll\pic1.jpg' height="100px" width="100px" id="myImage">
<button onclick='document.getElementById("myImage").src="C:\Users\foo\Pictures\Camera Roll\pic2.jpg"'>This is you</button>
</body>
When I click on the button, nothing happens. image doesn't change.
Now if I change the backward slash with forward slash in button tag, it works!
<button onclick='document.getElementById("myImage").src="C:/Users/foo/Pictures/Camera Roll/pic2.jpg"'>This is you</button>
Not able to figure out whats wrong with it.
any clue?