Page 3 of 3

how to make a phone call

Posted: Tue Dec 24, 2013 5:20 pm
by Ketan Patil

not working, it is just opening blank new page in browser

I am storing number.
Fetching it to a label.
After touching label popup is opening.
On pop up there is a button for calling the number.

just tell me how i can send label contains to next page?


how to make a phone call

Posted: Tue Dec 24, 2013 6:55 pm
by Maryna Brodina

Hello! prejust tell me how i can send label contains to next page?/pre on Click event on Label add action Set LocalStorage Variable
Image In "phoneNumber" localStorage variable will be saved phone number. On pop-up or any other page you'll be able to call on this number using this JS code: prewindow.location.href = "tel:" + localStorage.getItem("phoneNumber");/pre


how to make a phone call

Posted: Wed Dec 25, 2013 4:39 am
by Ketan Patil

thanks a lot for solution!

the working code would be

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

any way thanks again!