About 12,400,000 results
Open links in new tab
  1. Turn on or off bulb using JavaScript - GeeksforGeeks

    Jan 3, 2024 · In this article, we are going to learn how to turn on or off bulbs using JavaScript. Syntax <img src = "URl" onClick=turnOnOff()> Approach. The HTML file includes the …

  2. W3Schools Tryit Editor

    The W3Schools Tryit Editor lets you experiment with JavaScript code and instantly see the results in your browser.

  3. How to turn a lightbulb on and off in JavaScript?

    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. It includes an …

  4. 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. Bulb On / Off using JavaScript. So you will need …

  5. On Off Bulb | Javascript Project - Coding Artist

    Sep 30, 2022 · Learn how to create a on off bulb using HTML, CSS and Javascript. Download source code or watch video tutorial.

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

    Mar 12, 2025 · When it comes to creating interactive web pages, JavaScript is an essential tool. In this post, we'll explore a simple yet effective example of using JavaScript to create a bulb …

  7. JavaScript Bulb On/Off from One Button - webdevtutor.net

    Mar 12, 2025 · Imagine you have a light bulb connected to your computer via USB, and you want to control its state (on/off) using just one button. You can achieve this by writing a simple …

  8. Bulb On Off JavaScript- Mini Project [ Free Source Code ]

    Aug 23, 2019 · To turn the bulb on or off, first, we need to create an HTML page with CSS (CSS is only for the buttons and images) and apply the javascript code to change the bulb images. …

  9. Bulb On Off | Spaceship - Road To Code

    function bulbOff() { bulbElement.src = "off.png"; }: This JavaScript function named bulbOff() is similar to bulbOn(), but it changes the src attribute back to off.png, turning off the bulb image. …

  10. Switching On and Off a Bulb in JavaScript - Online Tutorials Library

    Mar 20, 2021 · Learn how to switch on and off a bulb using JavaScript with this simple tutorial. Understand the coding techniques involved in creating interactive web elements.

  11. Some results have been removed
Refresh