MutationEvent.prevValue (Property)

When an attribute changes, the old attribute value is available here.


DOM level - 2
JavaScript - 1.5
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:NmyMutationEvent.prevValue

This value preserves the old attribute value so you can restore it into the attribute if you inspect the new value and find that it is inappropriate.

See also:MutationEvent.attrChange, MutationEvent.attrName, MutationEvent.newValue

Property attributes: