MozContact.adr
This API is available on Firefox OS for privileged or certified applications only.
The adr
property is a list of all the possible addresses for the contact.
Syntax
JavaScript
Copy Code
var address = instanceOfMozContact.adr
Value
Return an Array of AddressField objects.
AddressField
Those objects are regular JavaScript objects, each representing a means of contact with the following properties:
type
- A string representing the type for that address (e.g., "home", "work").
pref
- A boolean indicating if it is the preferred address (
true
) or not (false
). - streetAddress
- A string representing the street name, number, etc. of the address.
- locality
- A string representing the city of the address.
- region
- A string representing the geographical region of the address.
- postalCode
- A string representing the postal code for the address.
- countryName
- A string representing the name of the country for the address.
Specifications
Specification | Status | Comment |
---|---|---|
Contacts Manager API | Working Draft | First Working Draft (unstable) |
vCard Format Specification The definition of 'Contact.adr' in that specification. |
IETF RFC | RFC 6350 |
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 Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
basic support | No support | No support | 18.0[1] | No support | No support | No support |
[1] As the specification is unstable, the Gecko implementation is completely non-standard.
See also
License
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/mozcontact/adr