Answer the question
In order to leave comments, you need to log in
How in a js file (and not in html) to make the function run when a link is clicked?
There are several links, and we need to run a script every time the user clicks on any of them. Is it possible to do this via addEventListener?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question