Provides information about a mutation event.
Browser/User Agent Support
| IE | Mozilla | Netscape | Opera | Safari | Netscapte | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
|---|
Constructors
| Constructor | IE | Mozilla | Netscape | Opera | Safari | Netscapte |
|---|---|---|---|---|---|---|
Provides information about a mutation event. | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Properties
| Property | IE | Mozilla | Netscape | Opera | Safari | Netscapte |
|---|---|---|---|---|---|---|
Specifies how an attribute was modified. See remarks for possible values. See remarks for possible values. | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Name of the attribute that was modified. | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
New value of the attribute. | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Previous value of the attribute. | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Associated node for attribute modification events, or the parent node of an inserted or deleted node. | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Methods
| Method | IE | Mozilla | Netscape | Opera | Safari | Netscapte |
|---|---|---|---|---|---|---|
Sets the initial property values for a new MutationEvent object. | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ | no |
Availability
HTML DOM Level 2 | W3C
Constructor Detail
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
