Navigator: contacts property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
Thecontacts read-only property of theNavigator interface returns aContactsManager interfacewhich allows users to select entries from their contact list and share limited detailsof the selected entries with a website or application.
In this article
Value
AContactsManager object. Two successive calls return the same object.
Examples
The following code checks whether the Contact Picker API is supported.
js
const supported = "contacts" in navigator && "ContactsManager" in window;Specifications
| Specification |
|---|
| Contact Picker API> # dom-navigator-contacts> |