About 9,040,000 results
Open links in new tab
  1. W3Schools Tryit Editor

    <!DOCTYPE html> <html> <body> <img id="myImage" onclick="changeImage()" src="pic_bulboff.gif" width="100" height="180"> <p>Click the light bulb to turn on/off the …

  2. How to turn a lightbulb on and off in JavaScript? - Stack Overflow

    May 12, 2019 · I am making a function in javascript that is supposed to change the src of an html element to make it seem like the html element (a lightbulb) is turning on and off.

  3. Turn on or off bulb using JavaScript - GeeksforGeeks

    Jan 3, 2024 · There is a JavaScript function named turnOnOff() defined within the <script> tag. This function toggles the bulb image between ON and OFF states based on its current source. …

  4. javascript - Trying to make a light bulb using HTML & CSS & JS …

    Nov 26, 2021 · I am trying to make 3 light bulbs represented by circles using HTML & CSS. So if I turn one light bulb on using the button, the other ones should turn off using the addeventlistener.

  5. Bulb On / Off using JavaScript - Full Stack Gyan

    Nov 3, 2023 · Hello friends, in today’s post you will know how to turn the bulb on and off (bulb on and off using js) with JavaScript, so let’s start. The path of whose image is being given to you …

  6. Mastering JavaScript: A Simple Bulb On-Off Demo

    Mar 12, 2025 · In this post, we'll explore a simple yet effective example of using JavaScript to create a bulb on/off effect. We'll cover the basics of event listeners and DOM manipulation, so …

  7. javascript - Automatic light change in HTML - Stack Overflow

    Mar 8, 2017 · I have got the traffic light layout done and the colour to change when the user clicked one of three buttons. Can anyone help me to make them light up automatically when …

  8. How to Control Hue Lights with JavaScript - Auth0

    Jan 15, 2021 · Hue allows you to control the color of your bulb by using values for hue, saturation, and brightness (HSB). Therefore, you can update your. function to accept values for each and …

  9. Bulb Toggle (ON/OFF) Project - GitHub

    This project demonstrates a simple interactive "bulb on/off" effect using HTML, CSS, and JavaScript. The interface includes two buttons to switch the bulb's image between "on" and …

  10. Simple ON & OFF Bulb using HTML, CSS & JS - CodePen

    box-shadow: 5px 5px 25px 0px rgba(46,61,73,0.2);

  11. Some results have been removed
Refresh