Page 1 of 2

Click and Call

Posted: Thu Jul 14, 2011 5:25 pm
by markus.selg

Hey, is it possible to click on a Button, and after that the phone call a number. I think this is possible via "Run costum JavaScript". But I can't find the right code.
Thank you for your help!


Click and Call

Posted: Thu Jul 14, 2011 5:50 pm
by maxkatz

This works: http://stackoverflow.com/questions/27...

I added click event to a button, then added Navigate to Link action and set this in the URL: tel:2125551212

Let me know if it works for you...


Click and Call

Posted: Thu Jul 14, 2011 9:03 pm
by maxkatz

Click and Call

Posted: Fri Jan 04, 2013 10:48 am
by Avinash Lt

i want to achieve the about using java script as my tell phone number is stored in local storage variable. Any suggestions please?


Click and Call

Posted: Fri Jan 04, 2013 10:59 am
by Maryna Brodina

Hello! Use this JS on button click

window.location.href='tel:' + localStorage.getItem('variable_name');

variable_name - is name of your variable where you store phone numbers


Click and Call

Posted: Fri Jan 04, 2013 11:50 am
by Avinash Lt

thank you so much! works :)


Click and Call

Posted: Sat Mar 02, 2013 7:32 pm
by michaeloucks

I tried this JS window.location.href='tel:' + localStorage.getItem('variable_name');
and I cant seem to get the tel-number to load.


Click and Call

Posted: Sat Mar 02, 2013 7:39 pm
by maxkatz

Test to make sure you get the right value from local storage.


Click and Call

Posted: Mon Sep 02, 2013 5:38 am
by Kirit Vaghela

Hello I'm not able to call in iphone using
document.location.href = 'tel:+1-800-555-1234';


Click and Call

Posted: Mon Sep 02, 2013 5:51 am
by maxkatz