Answer the question
In order to leave comments, you need to log in
Is this code correct and why does it work this way?
Hello. Am I writing the example correctly? Why is dispatchEvent() a Node method?
https://jsfiddle.net/zqaq1sfe/
Answer the question
In order to leave comments, you need to log in
The example is correct. You can read about dispatchEvent here: https://learn.javascript.ru/dispatch-events
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question