The
EventListener
interface is the primary method for
handling events. Users implement the
EventListener
interface
and register their listener on an
EventTarget
using the
AddEventListener
method. The users should also remove their
EventListener
from its
EventTarget
after they
have completed using the listener.
When a
Node
is copied using the
cloneNode
method the
EventListener
s attached to the source
Node
are not attached to the copied
Node
. If
the user wishes the same
EventListener
s to be added to the
newly created copy the user must add them manually.
See also the
Document Object Model (DOM) Level 2 Events Specification.
EventListener
interface is the primary method for handling events. Users implement theEventListener
interface and register their listener on anEventTarget
using theAddEventListener
method. The users should also remove theirEventListener
from itsEventTarget
after they have completed using the listener. When aNode
is copied using thecloneNode
method theEventListener
s attached to the sourceNode
are not attached to the copiedNode
. If the user wishes the sameEventListener
s to be added to the newly created copy the user must add them manually. See also the Document Object Model (DOM) Level 2 Events Specification.