Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

This article needs a technical review. How you can help.

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

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

Document Tags and Contributors

 Last updated by: chrisdavidmills,