开发者

is there a way to open call dial from html?

In Html I'm looking for a kind of tag or attribute a l开发者_高级运维ittle bit like :

href="mailto:foo@bar.com"

but

href="phoneto:+11XXXXXXXX"

does it exist?


This is for the iPhone
The html/url format is:

href="tel:########"

in Objective-C code: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:8005551212"]];

Here is a link to the relevant Apple Documentation on URL Schemes.


The format for Android is href="tel:xxxxxxxx"

see previous stackoverflow answer at : On Android : making a phonecall using a browser application

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜