Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

if webpage is being opened on a mobile device how to open phone call screen in react js web app

I had created a web app and i want if webpage is being opened on a mobile device how to open phone call screen in react js web app. How is it possible?

like image 321
LB93 Avatar asked Oct 30 '25 09:10

LB93


1 Answers

You could use tel inside href to open default caller application.

<a href="tel:+9971863733">Call: 9971863733</a>

Or use onClick handler on any element to call

onclick="window.open('tel:9971863733');"
like image 74
tarzen chugh Avatar answered Nov 01 '25 22:11

tarzen chugh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!