Search code examples
javascriptmailtoemail-client

Add an email to user's address book using javascript/html


Is there a way to use javascript/html to add an email address to visitors address book?

I'm looking for a function similar to "mailto" anchor, which opens users email client and opens a new message tab, only instead of opening the mail client with new message, i would like to open it and go to "add contacts" tab

I've read something about javascript Intent's but those are currently unsupported by most browsers and as far as i know, don't allow adding contacts.


Solution

  • unfortunately, there is no function like "mailto" to create contacts-- the closest you can get is to create a vCard and have the user download and open it.