简体   繁体   English

如果网页正在移动设备上打开如何在反应 js web 应用程序中打开电话屏幕

[英]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.

相关问题 如何在网络应用程序上打开手机上的相机? - How can I open camera on mobile phone on a web app? 通过Web应用程序打开移动设备共享对话框 - Open the mobile device share dialog via web app 如果在移动设备上打开网页,则禁用该网页。 (Android / iPad /黑莓手机) - Disable webpage if opened on a mobile device. (Android / iPad / Blackberry) 如何检测移动浏览器或应用程序是否打开了网页? - How can I detect if a web page is opened by a mobile browser or an app? 如何在没有包的情况下使用本机反应在移动设备上打开电子邮件应用程序? - How to open email app on mobile device using react native without package? 如何在iPhone上的Web应用程序中发起电话 - How to initiate a phone call in a web app on iPhone 如何在Java Web应用程序中获取实际的移动设备屏幕尺寸? - How to get actual mobile device screen size in web applications, javascript? 如何阻止我的用户在他们的手机上打开我的 React Native 应用程序,直到他们不会打开他们的 wifi 或移动数据? - How can I stop my user to open my React Native app on their phone until they will not turn on their wifi or mobile data? 移动网络-打开键盘时如何获取屏幕的高度 - Mobile web - How to get the screen's height when the keyboard is open React js:如何通过网页上的 HTML 按钮打开本地路径 - React js: How to open a local path via HTML button on webpage
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM