41

Is there any way using html and/or JS to link an image so that it makes a phone call. Similar to the mailto: links. This would just make life a lot easier if this was possible. Say if a person had skype, could a button then open skype for them and call a number?

Thanks in advance

MJ007
  • 23
  • 1
  • 1
  • 19
user3760124
  • 415
  • 1
  • 4
  • 6
  • 3
    try callto:, skype: or tel: - and see here: http://stackoverflow.com/questions/1164004/how-to-mark-up-phone-numbers (tel: being the defacto standard now) – hank Jun 22 '14 at 08:10

2 Answers2

75

like this:

<a href="tel:+1800229933">Call us free!</a>

you can look also on this article

add-telephone-number-links-with-html

Haim Evgi
  • 123,187
  • 45
  • 217
  • 223
4

Presuming that desktop userd use skype,

Call <a href="<? echo ($detect->isMobile()) ? 'tel' : 'callto'; ?> :+1-579-827-0034">579-827-0034</a>
ebiv
  • 315
  • 2
  • 8