An easy and simple way of using a button to turn a bulb on and off in HTML/CSS using JavaScript.

you can use the same method in different purpose such as : changing images.

if you want to insert your own image source then simply change the following src / line / link :

src = "your image source";

Hope this will help you <3