

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Detecting HTML <a> click-to-call support in JavaScript
The tel: protocol is supported by almost every mobile device nowadays. This includes Safari on iOS, Android Browser, Symbian browser, Opera Mini, etc.
Add it like this −
if (/(HTC825)/i.test(navigator.userAgent)){ $("a[href^='tel:']").each(function(){ this.href = this.href.replace("tel:", "wtai://wp/mc;"); }); }
- Related Questions & Answers
- How to call a JavaScript function on click?
- How to call a JavaScript function on a click event?
- How to call a JavaScript function in HTML?
- JavaScript Detecting a mobile browser
- How to use an HTML button to call a JavaScript function?
- Detecting arrow key presses in JavaScript?
- WebDriver click() vs JavaScript click().
- JavaScript - Detecting the pressed arrow key
- Ember.js browser support with HTML
- HTML DOM click() method
- I want to call JButton doClick() method to simulate a click action in Java
- How to call a function in JavaScript?
- How to detect click on HTML button through javascript in Android WebView?
- How to delay a JavaScript function call using JavaScript?
- Double click on ALV Grid to call Transaction and pass information in SAP
Advertisements