[英]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.我创建了一个 web 应用程序,我想如果在移动设备上打开网页,如何在反应 js web 应用程序中打开电话屏幕。 How is it possible?
这怎么可能?
You could use tel
inside href
to open default caller application.您可以在
href
中使用tel
打开默认调用者应用程序。
<a href="tel:+9971863733">Call: 9971863733</a>
Or use onClick handler on any element to call或者在任何元素上使用 onClick 处理程序来调用
onclick="window.open('tel:9971863733');"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.