0

Modern smartphones detect phone number formats and automatically turn them into links that upon clicking will insert the number in your dial pad so you can dial.

For example:

(310) 555 - 5555 or 310.555.5543

Is there a way to force a number that doesn't follow standard phone number formats to also become dialable?

for example: 3949392.2

Sammy
  • 3,059
  • 4
  • 23
  • 32

1 Answers1

3

Answered here. Use the tel: prefix in the <a href> tag.

<a href="tel:2125551212">212-555-1212</a>

As for the non-standard phone numbers, just strip out all non-numerical characters like this:

<a href="tel:39493922">Call 3949392.2</a>
Community
  • 1
  • 1
Giacomo1968
  • 25,759
  • 11
  • 71
  • 103