Line 1: | Line 1: | ||
+ | Image').src='pic_bulbon.gif'">Turn on the light</button> | ||
<img id="myImage" src="pic_bulboff.gif" style="width:100px"> | <img id="myImage" src="pic_bulboff.gif" style="width:100px"> | ||
<button onclick="document.getElementById('myImage').src='pic_bulboff.gif'">Turn off the light</button> | <button onclick="document.getElementById('myImage').src='pic_bulboff.gif'">Turn off the light</button> |
Revision as of 16:47, 23 October 2017
Image').src='pic_bulbon.gif'">Turn on the light</button>
<img id="myImage" src="pic_bulboff.gif" style="width:100px">
<button onclick="document.getElementById('myImage').src='pic_bulboff.gif'">Turn off the light</button>