Fires when a script changes the value of a TextNode.
You can use the newValue and prevValue properties of the external object to get the current and previous contents of the TextNode.
How to register:
object.addEventListener ("DOMCharacterDataModified", handler, useCapture);
This event cannot be registered in HTML.
The event object is accessible to all event handlers in all browsers. The properties of the event object contain additional information about the current event. To get further details about these properties and the possible event handler registration methods, please see the page for the event object.
Actions that invoke the DOMCharacterDataModified event:
Example HTML code 1:
This example illustrates the use of the DOMCharacterDataModified event:
Did you find this example helpful?
User Contributed Comments