Welcome!

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

SignUp Now!

addeventlistener

  1. W

    JavaScript How to set, and then update a Datetime updated field?

    Hi forum, I'm using Bootstrap studio 5.3 and currently have a form with 23 fields on it. It's a form a user can save progress on and come back to at a later time or date, so there is a "Date Updated" field that is a read only datetime picker. As of now, I can get the Date Updated field to...
  2. yumedoll

    JavaScript [SOLVED] Can anyone help me figure out why these specific EventListeners aren't working?

    I have this: document.documentElement.addEventListener("load", function(){ document.getElementById("loading").style.display = "block"; document.getElementById("okthanks").style.display = "none"; }); window.addEventListener("load", function(){...
  3. J

    JavaScript Uncaught ReferenceError: displayText is not defined at HTMLAreaElement.<anonymous>

    Here's an error that has been plaguing me every time I try to add a function from within an onclick. It happens for seemingly no reason. Here is the code: export class Clickables { constructor(game) { this.game = game; this.doOnce = false; this.textDisplaying =...
  4. G

    JavaScript Problem running JavaScript code on Apple devices

    The goal is to execute a function when a button with the class .more is clicked. However, after modifying the code to troubleshoot the issue, none of the event handlers are working on Apple. The following code runs without any problems on Android (Chrome & Firefox) and on Windows (Chrome & Edge)...
  5. I

    JavaScript How to make navigation close in JS when clicking somewhere else?

    I know this is a frequently asked question but I am not really familiar with web development and this is the only thing I need to get done. This is how the navigation javascript snippet currently looks like: const hamburger = document.querySelector('.hamburger'); const navItem =...
Back
Top Bottom