L
L
lavezzi12018-02-06 19:53:03
JavaScript
lavezzi1, 2018-02-06 19:53:03

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

1 answer(s)
S
Sergey Epifanov, 2018-02-06
@lavezzi1

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 question

Ask a Question

731 491 924 answers to any question