Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

click

  1. H

    JavaScript Grey background on IOS when clicking

    Hello there!! When I click on an absolute positioned div on IOS (Safari), there is a flash of a grey background. This is a video the example: Screen Recording 2025-04-10 at 09.23.30.mov And this is a code pen with the example code: https://codepen.io/hebrerillo/pen/RNwzKXx However, if the...
  2. 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 =...
  3. E

    Autoclick print button goes into a loop

    Hi, could you help me please? From a Chrome extension I would like to autoclick on print confirmation ("button confirm"), but this script partially works, as the page refreshes endlessly in a loop. setTimeout(function() { labels = document.querySelectorAll('label'); if (labels[1].innerText...
  4. 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 =...
  5. A

    Why is input mouse clicking not working on WebGL build?

    Hi, I made an FPS game in unity3d and exported it to webgl (unity play). When I played that, however, and clicked on a gameobject, nothing happened. The gameobject was supposed to rotate on click. Even when I tried clicking on other similar gameobjects, the same issue persisted. I'm not sure...
  6. C

    JavaScript Click Button

    Hi, I have this code: which makes me have a button (Click Me) where every time I click it, the number changes upwards (from 1 to 99). Whenever it reaches 99, another button appears (Reset Me) that makes the count start again. - This makes it necessary to have two buttons. What I would like...
Back
Top Bottom