Javascript Reference
Categories: event

javascript event newValue, prevValue

@March 15, 2008, 1:22 a.m.
newValue, prevValueFirefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2

Read-only

Return a string with the new and previous values (respectively) of data associated with DOMAttrModified and DOMCharacterDataModified event types of the W3C DOM mutation events class. This information could be useful for creating an undo buffer for changes to an element's attribute or the content of a CharacterData node.

 
Example
 
undoAttrBuffer = {attrNode:evt.relatedNode, oldVal:evt.prevValue};
 
Value

String value.

 
Default

Empty string.


Powered by Linode.