Make phone number clickable on mobile only

New Page

Make a phone number clickable only on mobile browsers


Asked 9 years, 7 months ago

Modified 8 years and 2 months ago

Seen 7k times

This question shows research effort; it is useful and clear


This question shows no research effort; unclear or not useful

New! Save questions or answers and organize your favorite content. More information

View activity on this post.

I’m building a website for a client and I’ve been asked to click on a phone number on the site when using a mobile browser so clients can use it to easily call your business. I’ve researched the “tel:” html tag, but I guess that would make the numbers clickable in all browsers instead of just mobile.

So what I’m wondering is what’s the best way to make phone numbers clickable when using a browser on a mobile phone, but prevent them from being clickable elsewhere.

  • javascript
  • html
  • Telephone

To share

Share a link to this question

Copy link CC BY-SA 3.0


Follow this question to receive notifications

edited on August 7, 2014 at 5:29 PM

Kara user avatar


6,024 16 16 gold badges 50 50 silver badges 57 57 bronze badges

requested on February 21, 2013 at 1:15 p.m.

Kyri Elia user avatar

Kyri Elia Kyri Elia

967 9 9 silver badges 18 18 bronze badges

Add a comment | 

2 answers2

Sorted by: Reset to default

High score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first)

This answer is helpful


This answer is not helpful

Save this response.

View activity on this post.

See this:


You can check the dimensions of the screen:

if ($(window).width() < 480 || $(window).height() < 480) { //small screen, load other JS files $.getScript(‘/js/script.js’, function ( ) { //the script has been added to the DOM, you can now use its code }); }

For more information on $.getScript():


Share a link to this answer

Copy link CC BY-SA 3.0


Follow this answer to receive notifications

answered February 21, 2013 at 1:21 PM

Maverick user avatar

non-conformist non-conformist

895 8 8 silver badges 23 23 bronze badges

Add a comment | 

This answer is helpful


This answer is not helpful

Save this response.

View activity on this post.

the dimensions of the screen are constantly changing. see my solution to a similar question here. manipulate the tag:



Share a link to this answer

Copy link CC BY-SA 3.0


Sigue esta respuesta para recibir notificaciones

edited May 23, 2017 at 11:59

Community user avatar

Community Bot

1 1 1 silver badge

answered Mar 15, 2013 at 17:08

Alan's user avatar

Alan Alan

259 2 2 silver badges 8 8 bronze badges

Add a comment  | 

Tu respuesta

¡Gracias por contribuir con una respuesta a Stack Overflow!

  • Por favor, asegúrese de responder a la pregunta . ¡Proporcione detalles y comparta su investigación!

Pero evita …

  • Pedir ayuda, aclaraciones o responder a otras respuestas.
  • Hacer declaraciones basadas en la opinión; respaldarlos con referencias o experiencia personal.

Para obtener más información, consulte nuestros consejos sobre cómo escribir excelentes respuestas .

Draft saved

Draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using your email and password


Post as guest



Required, but never displayed

Post as guest



Required, but never displayed

Post your answer Ignore

By clicking “Post your answer” you agree to our Terms of Service, Privacy Policy and Cookies Policy

Not the answer you are looking for? Browse other tagged questions

  • javascript
  • html
  • Telephone

or ask your own question.

  • The overflow blog
  • How Observational Development Creates Elite Artists

  • The robots are coming… but when? (ep 496)

  • Featured in Meta
  • Bookmarks have been saved

  • Inbox improvements: mark notifications as read/unread and filter…

  • Collective update: recognized members, articles and GitLab

  • The [script] tag burns



Difference between tel and wtai url schemes

of them

Mobile browsers incorrectly interpret numbers as phones


What mobile browsers support <track> when using html5 video


how to make an entire row of a table clickable as a link?


How to make type=”number” only positive numbers


Make certain areas of the banner image clickable


How to make dynamic phone number clickable for mobile users


Non-clickable phone number with Azure Bot Framework Web Chat


Mobile browsing not clickable when browser search bar is expanded

burning questions from the net

  • Could a planet have ocean basins if it had no ocean?
  • Is it too late to save my creatures?
  • Code to find the similarity transformation between two matrices
  • Are there spells suitable for parties?
  • Trapezoidal approximation of the moment-to-moment inductor current
  • Listen to music recorded after a nuclear war
  • How well known is the effect of death on Middle-earth?
  • Collection of sci-fi short stories: zombie soldiers and a man who rips out his heart
  • What is the “preamble” of an electoral measure called?
  • How can I draw a seamless texture and have GIMP mirror the edges on the sides of the texture?
  • Sharp increase in the electricity bill (possible damage to the cable)
  • Is a husband and wife executive team a red flag?
  • Munich port of entry for a D visa issued by the Austrian Embassy
  • Contradictory meanings for the expression “犬も歩けば”?
  • What are the typical steps and checks involved in updating scientific computer code, if any?
  • How are the additional BASIC keywords from the Timex Sinclair 2068 that the ZX Spectrum had not encoded?
  • Get a SIM card for a foreign phone in the United States
  • Unable to use KDE desktop due to auto login
  • Checksum of prime numbers
  • Ambiguity in determining the owner of a genitive personal pronoun
  • Where does space curvature occur?
  • Find Pareto optimal allocations and Walrasian equilibrium allocations in the case of the 3 good ones
  • Why didn’t soldiers eat meat from cows killed by their enemies?
  • QED scattering cross sections are independent of gauge attachment terms

hotter questions

question flow

Subscribe to RSS

question flow

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Video Make phone number clickable on mobile only

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…