Using javascript / jquery to dial

Does anyone know how I can dial using javascript? I tried the following:

window.location.href = 'tel:7178081998';

The button logs a click, but does nothing in the ios environment.

I have a problem when my "tel" links do not work due to the script I have (FastClick). I tried everything I could think, why I am here, where I am.

Thoughts?

+5
source share
2 answers

<a href="tel:5558675309">555-867-5309</a> That should work.

If you need to enter a popup dialog to ask the user “Are you sure you want to call?” Just in case s / he clicked it unintentionally.

<a id="call" href="">555-867-5309</a>

Use the call identifier to open the dialog by clicking OK to dynamically place the data in the href attribute.

+1

. iframe? DOM .

IFRAME DOM Javascript

0

All Articles