Only when an event occurs in the context of the object on which they are registered are event listeners called. The button node is given a handler in this example. Clicking the button activates the handler, but clicking anywhere else in the document does not. Adding a onclick attribute to a node has a similar effect.
Using addEventListener, add an event handler to each of the div tags ().
Double-check that the event is "click" here.
The method addEventListener() takes three parameters.
Best courses ever.True words
I love this "LearnVern" course
I like the program this is online platform
Very well explained
This course is very helpfull.And way of teaching is very beautyfull and knowlagable.
Thank you sir.
i love this couse
the teaching way is easy and effective
Share a personalized message with your friends.