Bulb On Off Experiment With JavaScript
Download The Bulb From Here :
Html Code :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Bulb On Off Experiment</h1>
<button onclick="document.getElementById('myimage').src='img/bulbon.gif'">Turn on the light</button>
<img id="myimage" src="img/bulboff.gif" style="width:100px" alt="image">
<button onclick="document.getElementById('myimage').src='img/bulboff.gif'">Turn off the light</button>
</body>
</html>
0 মন্তব্যসমূহ