This API is available on Firefox OS for privileged or certified applications only.

The reason property indicates what kind of change was made to the contact.


var reason = instanceOfMozContactChangeEvent.reason


Return a string. Possible value is one of update, create, or remove.


The Contacts Manager API defines the properties added, modified and removed instead of the reason property.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
basic support No support No support No support No support No support
Feature Android Chrome for Android Firefox OS (Gecko) IE Mobile Opera Mobile Safari Mobile
basic support No support No support 1.0.1[1] No support No support No support

[1] As the specification is unstable, the Gecko implementation is completely non-standard.

See also


© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.

API B2G Contact Firefox OS Non-standard Property Reference