Subscribe to get my new tutorials in your inbox.

Calling phone numbers from web page – iPhone and Android

Ever wandered how to call a person’s number from your mobile phone browser by clicking a link or by pressing some button in your web page. Here is a quick example of how to call a phone number from your HTML page. The same technique works fine for both iPhone and Android’s web kit browsers.

From HTML (hyperlink)

<a href="tel:555-678-1234">Click to call</a>

From JavaScript

  function call() {
      window.location.href = 'tel:555-678-1234';
  }

And then you can add your custom styles using CSS. Pretty simple but very effective sometimes.

Write a Comment

Your email address will not be published. Required fields are marked *