TheEvent
interface is used to provide contextual information about an event to the listener processing the event. An object which implements theEvent
interface is passed as the parameter to anEventListener
. More specific context information is passed to event listeners by deriving additional interfaces fromEvent
which contain information directly relating to the type of event they represent. These derived interfaces are also implemented by the object passed to the event listener.
To create an instance of theEvent
interface, use theDocumentEvent.createEvent("Event")
method call.
An integer indicating which phase of the event flow is being processed as defined in
The current event phase is the
The current event is in the
The current event phase is the
The name should be anas defined in
If the attributeEvent.namespaceURI
is different fromnull
, this attribute represents a
Used to indicate the
Used to indicate theEventTarget
whoseEventListeners
are currently being processed. This is particularly useful during the capture and bubbling phases. This attribute could contain the
Used to indicate which phase of event flow is currently being accomplished.
Used to indicate whether or not an event is a bubbling event. If the event can bubble the value istrue
, otherwise the value isfalse
.
Used to indicate whether or not an event can have its default action prevented (see alsotrue
, otherwise the value isfalse
.
Used to specify the time (in milliseconds relative to the epoch) at which the event was created. Due to the fact that some systems may not provide this information the value oftimeStamp
may be not available for all events. When not available, a value of0
will be returned. Examples of epoch time are the time of the system start or 0:0:0 UTC 1st January 1970.
This method is used to prevent event listeners of the same group to be triggered but its effect is deferred until all event listeners attached on thecurrentTarget
have been triggered (see
This method does not prevent the default action from being invoked; usepreventDefault
for that effect.
If an event is cancelable, thepreventDefault
method is used to signify that the event is to be canceled, meaning any default action normally taken by the implementation as a result of the event will not occur (see also
This method does not stop the event propagation; usestopPropagation
orstopImmediatePropagation
for that effect.
TheinitEvent
method is used to initialize the value of anEvent
created through theDocumentEvent.createEvent
method. This method may only be called before theEvent
has been dispatched via theEventTarget.dispatchEvent()
method. If the method is called several times before invokingEventTarget.dispatchEvent
, only the final invocation takes precedence. This method has no effect if called after the event has been dispatched. If called from a subclass of theEvent
interface only the values specified in this method are modified, all other attributes are left unchanged.
This method sets theEvent.type
attribute toeventTypeArg
, andEvent.namespaceURI
tonull
. To initialize an event with a namespace URI, use theEvent.initEventNS(namespaceURIArg, eventTypeArg, ...)
method.
SpecifiesEvent.type
.
SpecifiesEvent.bubbles
. This parameter overrides the intrinsic bubbling behavior of the event.
SpecifiesEvent.cancelable
. This parameter overrides the intrinsic cancelable behavior of the event.
Thenull
if it is unspecified.
For events initialized with a DOM Level 2 Events method, such asEvent.initEvent()
, this is alwaysnull
.
This method will always returnfalse
, unless the event implements theCustomEvent
interface.
false
, unless the event object implements theCustomEvent
interface.
This method is used to prevent event listeners of the same group to be triggered and, unlikestopPropagation
its effect is immediate (see
This method does not prevent the default action from being invoked; useEvent.preventDefault()
for that effect.
This method will returntrue
if the methodEvent.preventDefault()
has been called for this event,false
otherwise.
true
ifEvent.preventDefault()
has been called for this event.
TheinitEventNS
method is used to initialize the value of anEvent
object and has the same behavior asEvent.initEvent()
.
SpecifiesEvent.namespaceuRI
, thenull
if no namespace.
SpecifiesEvent.type
, the
Refer to theEvent.initEvent()
method for a description of this parameter.
Refer to theEvent.initEvent()
method for a description of this parameter.
TheEventTarget
interface is implemented by all the objects which could be
When used withNodes
of the tree support this interface when the implementation conforms to DOM Level 3 Events and, therefore, this interface can be obtained by using binding-specific casting methods on an instance of theNode
interface.
InvokingaddEventListener
oraddEventListenerNS
multiple times on the sameEventTarget
with the same parameters (namespaceURI
,type
,listener
, anduseCapture
) is considered to be a no-op and thus independently of the event group. They do not cause theEventListener
to be called more than once and do not cause a change in the triggering order. In order to guarantee that an event listener will be added to the event target for the specified event group, one needs to invokeremoveEventListener
orremoveEventListenerNS
first.
This method allows the registration of an event listener in the default group and, depending on theuseCapture
parameter, on the capture phase of the DOM event flow or its target and bubbling phases.
Specifies theEvent.type
associated with the event for which the user is registering.
Thelistener
parameter takes an object implemented by the user which implements theEventListener
interface and contains the method to be called when the event occurs.
If true,useCapture
indicates that the user wishes to add the event listener for thefalse
, the event listener will only be triggered during the target and bubbling phases.
This method allows the removal of event listeners from the default group.
CallingremoveEventListener
with arguments which do not identify any currently registeredEventListener
on theEventTarget
has no effect.
Specifies theEvent.type
for which the user registered the event listener.
TheEventListener
to be removed.
Specifies whether theEventListener
being removed was registered for the capture phase or not. If a listener was registered twice, once for the capture phase and once for the target and bubbling phases, each must be removed separately. Removal of an event listener registered for the capture phase does not affect the same event listener registered for the target and bubbling phases, and vice versa.
This method allows the dispatch of events into the implementation's event model. TheEventTarget
object on whichdispatchEvent
is called.
The event to be dispatched.
Indicates whether any of the listeners which handled the event calledEvent.preventDefault()
. IfEvent.preventDefault()
was called the returned value isfalse
, else it istrue
.
UNSPECIFIED_EVENT_TYPE_ERR: Raised if theEvent.type
was not specified by initializing the event beforedispatchEvent
was called. Specification of theEvent.type
asnull
or an empty string will also trigger this exception.
DISPATCH_REQUEST_ERR: Raised if theEvent
object is already being dispatched in the tree.
NOT_SUPPORTED_ERR: Raised if theEvent
object has not been created usingDocumentEvent.createEvent()
or does not support the interfaceCustomEvent
.
This method allows the registration of an event listener in a specified group or the default group and, depending on theuseCapture
parameter, on the capture phase of the DOM event flow or its target and bubbling phases.
Specifies theEvent.namespaceURI
associated with the event for which the user is registering.
Specifies theEvent.type
associated with the event for which the user is registering.
Thelistener
parameter takes an object implemented by the user which implements theEventListener
interface and contains the method to be called when the event occurs.
If true,useCapture
indicates that the user wishes to add the event listener for thefalse
, the event listener will only be triggered during the target and bubbling phases.
The object that represents the event group to associate with theEventListener
(see alsonull
to attach the event listener to the default group.
This method allows the removal of an event listener, independently of the associated event group.
CallingremoveEventListenerNS
with arguments which do not identify any currently registeredEventListener
on theEventTarget
has no effect.
Specifies theEvent.namespaceURI
associated with the event for which the user registered the event listener.
Specifies theEvent.type
associated with the event for which the user registered the event listener.
TheEventListener
parameter indicates theEventListener
to be removed.
Specifies whether theEventListener
being removed was registered for the capture phase or not. If a listener was registered twice, once for the capture phase and once for the target and bubbling phases, each must be removed separately. Removal of an event listener registered for the capture phase does not affect the same event listener registered for the target and bubbling phases, and vice versa.
This method allows the DOM application to know if an event listener, attached to thisEventTarget
or one of its ancestors, will be triggered by the specified event type during the dispatch of the event to this event target or one of its descendants.
Specifies theEvent.namespaceURI
associated with the event.
Specifies theEvent.type
associated with the event.
true
if an event listener will be triggered on theEventTarget
with the specified event type,false
otherwise.
This method allows the DOM application to know if thisEventTarget
contains an event listener registered for the specified event type. This is useful for determining at which nodes within a hierarchy altered handling of specific event types has been introduced, but should not be used to determine whether the specified event type triggers an event listener (seeEventTarget.willTriggerNS()
).
Specifies theEvent.namespaceURI
associated with the event.
Specifies theEvent.type
associated with the event.
true
if an event listener is registered on thisEventTarget
for the specified event type,false
otherwise.
TheEventListener
interface is the primary way for handling events. Users implement theEventListener
interface and register their event listener on anEventTarget
. The users should also remove theirEventListener
from itsEventTarget
after they have completed using the listener.
Copying aNode
, with methods such asNode.cloneNode
orRange.cloneContents
, does not copy the event listeners attached to it. Event listeners must be attached to the newly createdNode
afterwards if so desired.
Moving aNode
, with methodsDocument.adoptNode
,Node.appendChild
, orRange.extractContents
, does not affect the event listeners attached to it.
This method is called whenever an event occurs of the event type for which theEventListener
interface was registered.
TheEvent
contains contextual information about the
Event operations may throw anEventException
as specified in their method descriptions.
An integer indicating the type of error generated.
If theEvent.type
was not specified by initializing the event before the method was called. Specification of theEvent.type
asnull
or an empty string will also trigger this exception.
If theEvent
object is already dispatched in the tree.
TheDocumentEvent
interface provides a mechanism by which the user can create anEvent
object of a type supported by the implementation. If the feature "Events" is supported by theDocument
object, theDocumentEvent
interface must be implemented on the same object. If the feature "+Events" is supported by theDocument
object, an object that supports theDocumentEvent
interface must be returned by invoking the methodNode.getFeature("+Events", "3.0")
on theDocument
object.
TheeventType
parameter specifies the name of the DOM Events interface to be supported by the created event object, e.g."Event"
,"MouseEvent"
,"MutationEvent"
and so on. If theEvent
is to be dispatched via theEventTarget.dispatchEvent()
method the appropriate event init method must be called after creation in order to initialize theEvent
's values.
As an example, a user wishing to synthesize some kind ofUIEvent
would invokeDocumentEvent.createEvent("UIEvent")
. TheUIEvent.initUIEventNS()
method could then be called on the newly createdUIEvent
object to set the specific type of user interface event to be dispatched,{"http://www.w3.org/2001/xml-events", "DOMActivate"}
for example, and set its context information, e.g.UIEvent.detail
in this example.
ThecreateEvent
method is used in creatingEvent
s when it is either inconvenient or unnecessary for the user to create anEvent
themselves. In cases where the implementation providedEvent
is insufficient, users may supply their ownEvent
implementations for use with theEventTarget.dispatchEvent()
method. However, the DOM implementation needs access to the attributesEvent.currentTarget
andEvent.eventPhase
to appropriately propagate the event in the DOM tree. Therefore users'Event
implementations might need to support theCustomEvent
interface for that effect.
For backward compatibility reason, "UIEvents", "MouseEvents", "MutationEvents", and "HTMLEvents" feature names are valid values for the parametereventType
and represent respectively the interfaces "UIEvent", "MouseEvent", "MutationEvent", and "Event".
The newly created event object.
NOT_SUPPORTED_ERR: Raised if the implementation does not support theEvent
interface requested.
Test if the implementation can generate events of a specified type.
Specifies theEvent.namespaceURI
of the event.
Specifies theEvent.type
of the event.
true
if the implementation can generate and dispatch this event type,false
otherwise.
TheCustomEvent
interface gives access to the attributesEvent.currentTarget
andEvent.eventPhase
. It is intended to be used by the DOM Events implementation to access the underlying current target and event phase while dispatching a customEvent
in the tree; it is also intended to be implemented, and
The methods contained in this interface are not intended to be used by a DOM application, especially during the dispatch on theEvent
object. Changing the current target or the current phase may result in unpredictable results of the event flow. The DOM Events implementation should ensure that both methods return the appropriate current target and phase before invoking each event listener on the current target to protect DOM applications from malicious event listeners.
If this interface is supported by the event object,Event.isCustom()
must returntrue
.
ThesetDispatchState
method is used by the DOM Events implementation to set the values ofEvent.currentTarget
andEvent.eventPhase
. It also reset the states ofisPropagationStopped
andisImmediatePropagationStopped
.
Specifies the new value for theEvent.currentTarget
attribute.
Specifies the new value for theEvent.eventPhase
attribute.
This method will returntrue
if the methodstopPropagation()
has been called for this event,false
in any other cases.
true
if the event propagation has been stopped in the current group.
TheisImmediatePropagationStopped
method is used by the DOM Events implementation to know if the methodstopImmediatePropagation()
has been called for this event. It returnstrue
if the method has been called,false
otherwise.
true
if the event propagation has been stopped immediately in the current group.
TheUIEvent
interface provides specific contextual information associated with User Interface events.
To create an instance of theUIEvent
interface, use theDocumentEvent.createEvent("UIEvent")
method call.
Theview
attribute identifies theAbstractView
from which the event was generated.
Specifies some detail information about theEvent
, depending on the type of event.
TheinitUIEvent
method is used to initialize the value of aUIEvent
object and has the same behavior asEvent.initEvent()
.
Refer to theEvent.initEvent()
method for a description of this parameter.
Refer to theEvent.initEvent()
method for a description of this parameter.
Refer to theEvent.initEvent()
method for a description of this parameter.
SpecifiesUIEvent.view
.
SpecifiesUIEvent.detail
.
TheinitUIEventNS
method is used to initialize the value of aUIEvent
object and has the same behavior asEvent.initEventNS()
.
Refer to theEvent.initEventNS()
method for a description of this parameter.
Refer to theEvent.initEventNS()
method for a description of this parameter.
Refer to theEvent.initEventNS()
method for a description of this parameter.
Refer to theEvent.initEventNS()
method for a description of this parameter.
Refer to theUIEvent.initUIEvent()
method for a description of this parameter.
Refer to theUIEvent.initUIEvent()
method for a description of this parameter.
TheTextEvent
interface provides specific contextual information associated with Text Events.
To create an instance of theTextEvent
interface, use theDocumentEvent.createEvent("TextEvent")
method call.
data
holds the value of the characters generated by the character device. This may be a single Unicode character or a non-empty sequence of Unicode characters
TheinitTextEvent
method is used to initialize the value of aTextEvent
object and has the same behavior asUIEvent.initUIEvent()
. The value ofUIEvent.detail
remains undefined.
Refer to theUIEvent.initUIEvent()
method for a description of this parameter.
Refer to theUIEvent.initUIEvent()
method for a description of this parameter.
Refer to theUIEvent.initUIEvent()
method for a description of this parameter.
Refer to theUIEvent.initUIEvent()
method for a description of this parameter.
SpecifiesTextEvent.data
.
TheinitTextEventNS
method is used to initialize the value of aTextEvent
object and has the same behavior asUIEvent.initUIEventNS()
. The value ofUIEvent.detail
remains undefined.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theTextEvent.initTextEvent()
method for a description of this parameter.
TheMouseEvent
interface provides specific contextual information associated with Mouse events.
In the case of nested elements mouse events are always targeted at the most deeply nested element. Ancestors of the targeted element may use bubbling to obtain notification of mouse events which occur within theirs descendent elements.
To create an instance of theMouseEvent
interface, use theDocumentEvent.createEvent("MouseEvent")
method call.
When initializingMouseEvent
objects usinginitMouseEvent
orinitMouseEventNS
, implementations should use the client coordinatesclientX
andclientY
for calculation of other coordinates (such as target coordinates exposed by
The horizontal coordinate at which the event occurred relative to the origin of the screen coordinate system.
The vertical coordinate at which the event occurred relative to the origin of the screen coordinate system.
The horizontal coordinate at which the event occurred relative to the DOM implementation's client area.
The vertical coordinate at which the event occurred relative to the DOM implementation's client area.
true
if the control (Ctrl) key modifier is activated.
true
if the shift (Shift) key modifier is activated.
true
if the alt (alternative) key modifier is activated.
The Option key modifier on Macintosh systems must be represented using this key modifier.
true
if the meta (Meta) key modifier is activated.
The Command key modifier on Macintosh system must be represented using this meta key.
During mouse events caused by the depression or release of a mouse button,button
is used to indicate which mouse button changed state.0
indicates the normal button of the mouse (in general on the left or the one button on Macintosh mice, used to activate a button or select text).2
indicates the contextual property (in general on the right, used to display a context menu) button of the mouse if present.1
indicates the extra (in general in the middle and often combined with the mouse wheel) button. Some mice may provide or simulate more buttons, and values higher than2
can be used to represent such buttons.
Used to identify a secondaryEventTarget
related to a UI event. Currently this attribute is used with the mouseover event to indicate theEventTarget
which the pointing device exited and with the mouseout event to indicate theEventTarget
which the pointing device entered.
TheinitMouseEvent
method is used to initialize the value of aMouseEvent
object and has the same behavior asUIEvent.initUIEvent()
.
Refer to theUIEvent.initUIEvent()
method for a description of this parameter.
Refer to theUIEvent.initUIEvent()
method for a description of this parameter.
Refer to theUIEvent.initUIEvent()
method for a description of this parameter.
Refer to theUIEvent.initUIEvent()
method for a description of this parameter.
Refer to theUIEvent.initUIEvent()
method for a description of this parameter.
SpecifiesMouseEvent.screenX
.
SpecifiesMouseEvent.screenY
.
SpecifiesMouseEvent.clientX
.
SpecifiesMouseEvent.clientY
.
SpecifiesMouseEvent.ctrlKey
.
SpecifiesMouseEvent.altKey
.
SpecifiesMouseEvent.shiftKey
.
SpecifiesMouseEvent.metaKey
.
SpecifiesMouseEvent.button
.
SpecifiesMouseEvent.relatedTarget
.
This methods queries the state of a modifier using a key identifier. See also
A modifier key identifier, as defined by theKeyboardEvent.keyIdentifier
attribute. Common modifier keys are"Alt"
,"AltGraph"
,"CapsLock"
,"Control"
,"Meta"
,"NumLock"
,"Scroll"
, or"Shift"
.
If an application wishes to distinguish between right and left modifiers, this information could be deduced using keyboard events andKeyboardEvent.keyLocation
.
true
if it is modifier key and the modifier is activated,false
otherwise.
TheinitMouseEventNS
method is used to initialize the value of aMouseEvent
object and has the same behavior asUIEvent.initUIEventNS()
.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theMouseEvent.initMouseEvent()
method for a description of this parameter.
Refer to theMouseEvent.initMouseEvent()
method for a description of this parameter.
Refer to theMouseEvent.initMouseEvent()
method for a description of this parameter.
Refer to theMouseEvent.initMouseEvent()
method for a description of this parameter.
Refer to theMouseEvent.initMouseEvent()
method for a description of this parameter.
Refer to theMouseEvent.initMouseEvent()
method for a description of this parameter.
Aseparated list of modifier key identifiers to be activated on this object. As an example,"Control Alt"
will activated the control and alt modifiers.
TheKeyboardEvent
interface provides specific contextual information associated with keyboard devices. Each keyboard event references a key using an identifier. Keyboard events are commonly directed at the element that has the focus.
TheKeyboardEvent
interface provides convenient attributes for some common modifiers keys:KeyboardEvent.ctrlKey
,KeyboardEvent.shiftKey
,KeyboardEvent.altKey
,KeyboardEvent.metaKey
. These attributes are equivalent to use the methodKeyboardEvent.getModifierState(keyIdentifierArg)
with "Control", "Shift", "Alt", or "Meta" respectively.
To create an instance of theKeyboardEvent
interface, use theDocumentEvent.createEvent("KeyboardEvent")
method call.
This set of constants is used to indicate the location of a key on the device. In case a DOM implementation wishes to provide a new location information, a value different from the following constant values must be used.
The key activation is not distinguished as the left or right version of the key, and did not originate from the numeric keypad (or did not originate with a virtual key corresponding to the numeric keypad). Example: the 'Q' key on a PC 101 Key US keyboard.
The key activated is in the left key location (there is more than one possible location for this key). Example: the left Shift key on a PC 101 Key US keyboard.
The key activation is in the right key location (there is more than one possible location for this key). Example: the right Shift key on a PC 101 Key US keyboard.
The key activation originated on the numeric keypad or with a virtual key corresponding to the numeric keypad. Example: the '1' key on a PC 101 Key US keyboard located on the numeric pad.
keyIdentifier
holds the identifier of the key. The key identifiers are defined in Appendix A.2 ""Unidentified"
.
ThekeyLocation
attribute contains an indication of the location of they key on the device, as described in
true
if the control (Ctrl) key modifier is activated.
true
if the shift (Shift) key modifier is activated.
true
if the alternative (Alt) key modifier is activated.
The Option key modifier on Macintosh systems must be represented using this key modifier.
true
if the meta (Meta) key modifier is activated.
The Command key modifier on Macintosh systems must be represented using this key modifier.
This methods queries the state of a modifier using a key identifier. See also
A modifier key identifier. Common modifier keys are"Alt"
,"AltGraph"
,"CapsLock"
,"Control"
,"Meta"
,"NumLock"
,"Scroll"
, or"Shift"
.
If an application wishes to distinguish between right and left modifiers, this information could be deduced using keyboard events andKeyboardEvent.keyLocation
.
true
if it is modifier key and the modifier is activated,false
otherwise.
TheinitKeyboardEvent
method is used to initialize the value of aKeyboardEvent
object and has the same behavior asUIEvent.initUIEvent()
. The value ofUIEvent.detail
remains undefined.
Refer to theUIEvent.initUIEvent()
method for a description of this parameter.
Refer to theUIEvent.initUIEvent()
method for a description of this parameter.
Refer to theUIEvent.initUIEvent()
method for a description of this parameter.
Refer to theUIEvent.initUIEvent()
method for a description of this parameter.
SpecifiesKeyboardEvent.keyIdentifier
.
SpecifiesKeyboardEvent.keyLocation
.
Aseparated list of modifier key identifiers to be activated on this object.
TheinitKeyboardEventNS
method is used to initialize the value of aKeyboardEvent
object and has the same behavior asUIEvent.initUIEventNS()
. The value ofUIEvent.detail
remains undefined.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theUIEvent.initUIEventNS()
method for a description of this parameter.
Refer to theKeyboardEvent.initKeyboardEvent()
method for a description of this parameter.
Refer to theKeyboardEvent.initKeyboardEvent()
method for a description of this parameter.
Aseparated list of modifier key identifiers to be activated on this object. As an example,"Control Alt"
will activated the control and alt modifiers.
TheMutationEvent
interface provides specific contextual information associated with Mutation events.
To create an instance of theMutationEvent
interface, use theDocumentEvent.createEvent("MutationEvent")
method call.
An integer indicating in which way theAttr
was changed.
TheAttr
was modified in place.
TheAttr
was just added.
TheAttr
was just removed.
relatedNode
is used to identify a secondary node related to a mutation event. For example, if a mutation event is dispatched to a node indicating that its parent has changed, therelatedNode
is the changed parent. If an event is instead dispatched to a subtree indicating a node was changed within it, therelatedNode
is the changed node. In the case of the{"http://www.w3.org/2001/xml-events", "DOMAttrModified"}
event it indicates theAttr
node which was modified, added, or removed.
prevValue
indicates the previous value of theAttr
node in{"http://www.w3.org/2001/xml-events", "DOMAttrModified"}
events, and of theCharacterData
node in{"http://www.w3.org/2001/xml-events", "DOMCharacterDataModified"}
events.
newValue
indicates the new value of theAttr
node in{"http://www.w3.org/2001/xml-events", "DOMAttrModified"}
events, and of theCharacterData
node in{"http://www.w3.org/2001/xml-events", "DOMCharacterDataModified"}
events.
attrName
indicates the name of the changedAttr
node in a{"http://www.w3.org/2001/xml-events", "DOMAttrModified"}
event.
attrChange
indicates the type of change which triggered the{"http://www.w3.org/2001/xml-events", "DOMAttrModified"}
event. The values can beMODIFICATION
,ADDITION
, orREMOVAL
.
TheinitMutationEvent
method is used to initialize the value of aMutationEvent
object and has the same behavior asEvent.initEvent()
.
Refer to theEvent.initEvent()
method for a description of this parameter.
Refer to theEvent.initEvent()
method for a description of this parameter.
Refer to theEvent.initEvent()
method for a description of this parameter.
SpecifiesMutationEvent.relatedNode
.
SpecifiesMutationEvent.prevValue
. This value may be null.
SpecifiesMutationEvent.newValue
. This value may be null.
SpecifiesMutationEvent.attrname
. This value may be null.
SpecifiesMutationEvent.attrChange
. This value may be null.
TheinitMutationEventNS
method is used to initialize the value of aMutationEvent
object and has the same behavior asEvent.initEventNS()
.
Refer to theEvent.initEventNS()
method for a description of this parameter.
Refer to theEvent.initEventNS()
method for a description of this parameter.
Refer to theEvent.initEventNS()
method for a description of this parameter.
Refer to theEvent.initEventNS()
method for a description of this parameter.
Refer to theMutationEvent.initMutationEvent()
method for a description of this parameter.
Refer to theMutationEvent.initMutationEvent()
method for a description of this parameter.
Refer to theMutationEvent.initMutationEvent()
method for a description of this parameter.
Refer to theMutationEvent.initMutationEvent()
method for a description of this parameter.
Refer to theMutationEvent.initMutationEvent()
method for a description of this parameter.
TheMutationNameEvent
interface provides specific contextual information associated with Mutation name event types.
To create an instance of theMutationNameEvent
interface, use theDocument.createEvent("MutationNameEvent")
method call.
The previous value of therelatedNode
'snamespaceURI
.
The previous value of therelatedNode
'snodeName
.
TheinitMutationNameEvent
method is used to initialize the value of aMutationNameEvent
object and has the same behavior asMutationEvent.initMutationEvent()
.
Refer to theMutationEvent.initMutationEvent()
method for a description of this parameter.
Refer to theMutationEvent.initMutationEvent()
method for a description of this parameter.
Refer to theMutationEvent.initMutationEvent()
method for a description of this parameter.
Refer to theMutationEvent.initMutationEvent()
method for a description of this parameter.
SpecifiesMutationNameEvent.prevNamespaceURI
. This value may benull
.
SpecifiesMutationNameEvent.prevNodeName
.
TheinitMutationNameEventNS
method is used to initialize the value of aMutationNameEvent
object and has the same behavior asMutationEvent.initMutationEventNS()
.
Refer to theMutationEvent.initMutationEventNS()
method for a description of this parameter.
Refer to theMutationEvent.initMutationEventNS()
method for a description of this parameter.
Refer to theMutationEvent.initMutationEventNS()
method for a description of this parameter.
Refer to theMutationEvent.initMutationEventNS()
method for a description of this parameter.
Refer to theMutationEvent.initMutationEventNS()
method for a description of this parameter.
Refer to theMutationEvent.initMutationEvent()
method for a description of this parameter.
Refer to theMutationEvent.initMutationEvent()
method for a description of this parameter.