I want to execute a function with argument from addEventListener on button click. i wrote some code,but here function is executing before button click.....below sample code....
- >Click Here
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Mar 9, 2021, 9:32 AM EST
hii follow thisHarshal LimayeRank #485 · 5.1K reputationPosted Mar 9, 2021, 9:58 AM EST