MutationEvent : Event

Provides information about a mutation event.

Browser/User Agent Support

IEMozillaNetscapeOperaSafariNetscapte
no1.0+6.0+7.0+1.0+no

Constructors

ConstructorIEMozillaNetscapeOperaSafariNetscapte
Provides information about a mutation event.
no1.0+6.0+7.0+1.0+no
 

Properties

PropertyIEMozillaNetscapeOperaSafariNetscapte
Specifies how an attribute was modified. See remarks for possible values. See remarks for possible values.
no1.0+6.0+7.0+1.0+no
 
Name of the attribute that was modified.
no1.0+6.0+7.0+1.0+no
 
New value of the attribute.
no1.0+6.0+7.0+1.0+no
 
Previous value of the attribute.
no1.0+6.0+7.0+1.0+no
 
Associated node for attribute modification events, or the parent node of an inserted or deleted node.
no1.0+6.0+7.0+1.0+no
 

Methods

MethodIEMozillaNetscapeOperaSafariNetscapte
Sets the initial property values for a new MutationEvent object.
no1.0+6.0+7.0+1.0+no
 

Availability

HTML DOM Level 2 | W3C

Constructor Detail

MutationEvent MutationEvent()

Provides information about a mutation event.

Visibility
internal

Property Detail

Number attrChange - read only

Specifies how an attribute was modified. See remarks for possible values. See remarks for possible values.

Remarks
Possible values are: 1 = MODIFICATION event (Attr node was modified), 2 = ADDITION event (Attr node was added), 3 = REMOVAL event (Attr node was removed).
Availability

HTML DOM Level 2 | W3C

String attrName - read only

Name of the attribute that was modified.

Availability

HTML DOM Level 2 | W3C

String newValue - read only

New value of the attribute.

Availability

HTML DOM Level 2 | W3C

String prevValue - read only

Previous value of the attribute.

Availability

HTML DOM Level 2 | W3C

Node relatedNode - read only

Associated node for attribute modification events, or the parent node of an inserted or deleted node.

Availability

HTML DOM Level 2 | W3C

Method Detail

initMutationEvent() : void

Sets the initial property values for a new MutationEvent object.

Availability

HTML DOM Level 2 | W3C