Show:
Properties |
Methods |
Constants |
|
Property |
Type |
Readonly |
Description |
attrChange
|
Number |
true |
Indicates the type of change which triggered the DOMAttrModified event. |
Acceptable values:
Value |
Description |
MODIFICATION |
The Attr was modified in place.
|
ADDITION |
The Attr was just added.
|
REMOVAL |
The Attr was just removed.
|
|
attrName |
String |
true |
Indicates the name of the changed Attr node in a DOMAttrModified event. |
bubbles * |
Boolean |
true |
Used to indicate whether or not an event is a bubbling event. |
cancelable * |
Boolean |
true |
Used to indicate whether or not an event can have its default action prevented. |
currentTarget * |
Node
|
true |
Used to indicate the EventTarget whose EventListeners are currently being processed. This is particularly useful during capturing and bubbling. |
defaultPrevented * |
Boolean |
true |
Used to indicate whether preventDefault() has been called for this event. |
eventPhase * |
Number |
true |
Used to indicate which phase of event flow is currently being evaluated. |
namespaceURI * |
String |
true |
The namespace URI associated with this event at initialization time, or null if it is unspecified. |
newValue |
String |
true |
Indicates the new value of the Attr node in DOMAttrModified events, and of the CharacterData node in DOMCharDataModified events. |
prevValue |
String |
true |
Indicates the previous value of the Attr node in DOMAttrModified events, and of the CharacterData node in DOMCharDataModified events. |
relatedNode |
Node
|
true |
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, the relatedNode is the changed parent. If an event is instead dispatched to a subtree indicating a node was changed within it, the relatedNode is the changed node. In the case of the DOMAttrModified event it indicates the Attr node which was modified, added, or removed. |
target * |
Node
|
true |
Used to indicate the EventTarget to which the event was originally dispatched. |
timeStamp * |
TimeStamp |
true |
Used to specify the time (in milliseconds relative to the epoch) at which the event was created. |
type * |
String |
true |
The name of the event (case-insensitive). The name must be an XML name. |
Method |
Returns |
Description |
initEvent *
|
Void |
The initEvent method is used to initialize the value of an Event created through the DocumentEvent interface. |
Sytaxis:
object.initEvent(type, canBubble, cancelable) Arguments:
Name |
Type |
O/R |
Description |
type |
String |
Required |
Specifies the event type. |
canBubble |
Boolean |
Required |
Specifies whether or not the event can bubble. |
cancelable |
Boolean |
Required |
Specifies whether or not the event's default action can be prevented. |
|
initMutationEvent
|
Void |
The initMutationEvent method is used to initialize the value of a MutationEvent object. |
Sytaxis:
object.initMutationEvent(type, canBubble, cancelable, relatedNode, prevValue, newValue, attrName, attrChange) Arguments:
Name |
Type |
O/R |
Description |
type |
String |
Required |
Specifies the event type. |
canBubble |
Boolean |
Required |
Specifies whether or not the event can bubble. |
cancelable |
Boolean |
Required |
Specifies whether or not the event's default action can be prevented. |
relatedNode |
Node
|
Required |
Used to identify a secondary node related to a mutation event. |
prevValue |
String |
Required |
Indicates the previous value of the Attr node in DOMAttrModified events, and of the CharacterData node in DOMCharDataModified events. |
newValue |
String |
Required |
Indicates the new value of the Attr node in DOMAttrModified events, and of the CharacterData node in DOMCharDataModified events. |
attrName |
String |
Required |
Indicates the name of the changed Attr node in a DOMAttrModified event. |
attrChange |
Number |
Required |
Indicates the type of change which triggered the DOMAttrModified event. |
|
preventDefault *
|
Void |
If an event is cancelable, the preventDefault 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. |
Sytaxis:
object.preventDefault()
|
stopImmediatePropagation *
|
Void |
Prevents other event listeners from being triggered and, unlike stopPropagation() its effect is immediate |
Sytaxis:
object.stopImmediatePropagation()
|
stopPropagation *
|
Void |
The stopPropagation method is used prevent further propagation of an event during event flow. The event will complete dispatch to all listeners on the current EventTarget before event flow stops. This method may be used during any stage of event flow. |
Sytaxis:
object.stopPropagation()
|
Event |
B |
C |
Interface |
Description |
Constant |
Value |
Description |
MODIFICATION |
1 |
The Attr was modified in place.
|
ADDITION |
2 |
The Attr was just added.
|
REMOVAL |
3 |
The Attr was just removed.
|
|