Christophe Debove
Christophe Debove

Reputation: 6296

is there a way to open call dial from html?

In Html I'm looking for a kind of tag or attribute a little bit like :

href="mailto:[email protected]"

but

href="phoneto:+11XXXXXXXX"

does it exist?

Upvotes: 1

Views: 2806

Answers (2)

Walter
Walter

Reputation: 5887

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.

Upvotes: 3

Frederic Bazin
Frederic Bazin

Reputation: 1529

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

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

Upvotes: 1

Related Questions