L
L
Leonid2018-05-04 09:50:04
JavaScript
Leonid, 2018-05-04 09:50:04

Is Document.addEventListener bad practice?

is it bad practice to add an event handler on document ?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
holymotion, 2018-05-04
@holymotion

Thus, it becomes possible to delegate event handlers

A
Ainur Valiev, 2018-05-04
@vaajnur

vice versa

P
Pavel Kornilov, 2018-05-04
@KorniloFF

No, but for browser-based solutions it will still be more correct,
since this will already be a call to an html page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question