MutationEvent.newValue (Property)

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

Availability:

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

You can use this value to check that the new attribute value is appropriate and if necessary modify it to ensure it falls within your require range. You can compare it with the previous value if needs be.

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

Property attributes:

ReadOnly.