开发者

is there a way to open call dial from html?

开发者 https://www.devze.com 2023-03-08 17:40 出处:网络
In Html I\'m looking for a kind of tag or attribute a l开发者_高级运维ittle bit like : href=\"mailto:foo@bar.com\"

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

精彩评论

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