最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Save contact number to mobile phone - Stack Overflow

programmeradmin3浏览0评论

I am working on a mobile website, and I am suppose to add contact number of my client to user's mobile phone (obviously on click of a button), I was wondering if this is possible using jQuery, JS, Jquery Mobile or HTML 5, like by using <a href="tel:111222333">Call</a> we can bring up cell phone dialer etc, thanks in advance

I am working on a mobile website, and I am suppose to add contact number of my client to user's mobile phone (obviously on click of a button), I was wondering if this is possible using jQuery, JS, Jquery Mobile or HTML 5, like by using <a href="tel:111222333">Call</a> we can bring up cell phone dialer etc, thanks in advance

Share Improve this question edited Jul 23, 2011 at 23:54 alex 491k204 gold badges889 silver badges991 bronze badges asked Jul 23, 2011 at 23:50 MNetMNet 791 gold badge2 silver badges7 bronze badges 4
  • 1 developer.apple./library/ios/#featuredarticles/… – Eric Fortis Commented Jul 24, 2011 at 0:12
  • 1 Mobile Safari generally detects phone numbers and makes them clickable. Not sure about other mobile browsers. Using the tel: scheme is probably the closest cross-platform solution you'll find. – Jason Commented Jul 24, 2011 at 0:18
  • @MNet - Have you tried my idea ? – ChristopheCVB Commented Jul 24, 2011 at 1:24
  • Yes I have tried that idea but doesnot work with android it shows the vcf, – MNet Commented Aug 2, 2011 at 23:04
Add a ment  | 

2 Answers 2

Reset to default 4

You just can't store directly contact on the phone using js or html5 stuff.

What you can try is creating a vcf card server side and redirect the client to download this newly generated vcf card... I've haven't yet tested this solution, but I think it can work.

In iOS, phone numbers are automatically detected, even if they aren't tel links. When clicking them there are two options – call, or add to address book. This isn't something that you need to implement, the UA does it for you.

发布评论

评论列表(0)

  1. 暂无评论