Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 699
نمايش فراداده

Availability

DOM Level 2 Events

Synopsis

void initMutationEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg,

Node relatedNodeArg, String prevValueArg,

String newValueArg, String attrNameArg, unsigned short attrChangeArg);

Arguments

The various arguments to this method specify the initial values of the properties of this MutationEvent object, including the properties inherited from the Event interface. The name of each argument clearly indicates the property for which it specifies the value, so the arguments are not listed individually here.

Description

This method initializes the various properties of a newly created MutationEvent object. It may be called only on a MutationEvent object created with Document.createEvent( ) and only before that MouseEvent is passed to EventTarget.dispatchEvent( ).