Featured Post

Data Science Concepts

Camera Light On & Off Using JavaScript by #BKTutorial




Source Code:

Note: Download Images

    <style>
      button
         {
            height:50px;
            weight:100px;
            font-family:roboto;
            font-size:20px; 
            font-weight:bold;    
         } 
    </style>     

<center>
<img id='image1' src="light.png" width=500px><br><br>
     <button onclick="document.getElementById('image1').src='light.png'">Light Off</button>
     <button onclick="document.getElementById('image1').src='light2.png'">Light On</button>
     </center>

Output:




       


 

Comments