Ketan Patil
Posts: 0
Joined: Tue Dec 03, 2013 1:10 pm

how to make a phone call

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

how to make a phone call

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

Ketan Patil
Posts: 0
Joined: Tue Dec 03, 2013 1:10 pm

how to make a phone call

thanks a lot for solution!

the working code would be

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

any way thanks again!

Return to “Issues”