Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <img id="myImg" src="compman_lowres.gif" width="107" height="98"> <br><br> <button onclick="document.getElementById('myImg').src='compman.gif'">On</button> <button onclick="document.getElementById('myImg').src='compman_lowres.gif'">Off</button> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_img_src_buttons by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:37:09 GMT --> </html>
Result:
Try it Yourself - © w3schools.com