Skip to content
CoursesWeb Forum
Sections

functions

1 thread tagged with this topic

Threads tagged functions

  1. •

    addEventListener runs my function immediately instead of on click

    ok this is driving me crazy. my function runs the moment the page loads and then clicking the button does nothing at all. console.log shows "clicked" before I...

    JavaScript and the DOMKaveh S.
    2replies
CoursesWeb Forum. Questions and answers on learning web development: HTML, CSS, JavaScript, PHP, MySQL, Node.js and AI coding help.