Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. N

    JavaScript function run without being called

    I am new to javascript and having a problem with some code. It seems to me some of my functions are running even when not called. The page loads and DOMContentLoaded event fires which is expected. DOMContentLoaded event calls getRandomNumber which is also expected. I enter a guess of the...
  2. N

    JavaScript Using attribute methods

    I am trying to get a handle on html, css and javascript. One thing i ran into was using DOM and using the attribute methods element.getAttribute(name) – get the attribute value element.setAttribute(name, value) – set the value for the attribute element.hasAttribute(name) – check for the...
  3. N

    JavaScript code breaks when I use a variable

    Using a webpage to control leds connected to a microcontroller. Just using a variable to substitute for document.getElementById('ID_LED_0') EDIT: Also get err in console: DevTools failed to load source map: Could not load content for...
Back
Top Bottom