Addeventlistener In Javascript Triggers The Click Event Automatically
I want to make a simple javascript countdown program. For some reason the countdown triggers without me having to click the start link.
Solution 1:
That's because startCountDown()
calls the function startCountDown
. Remove the parentheses, and it'll work.
Post a Comment for "Addeventlistener In Javascript Triggers The Click Event Automatically"