Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7405175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:21:47+00:00 2026-05-29T05:21:47+00:00

I am encountering problems with using images instead of plain text as links for

  • 0

I am encountering problems with using images instead of plain text as links for mobile Safari on iOS5, tested on device. I have tried three different link protocols, tel: mailto: and http: and describe the problem for each below.

<a href="tel:1234"><img src="images/phone.jpg" alt="" /></a>

Does not work in iOS5, it throws an Cannot Open Page error, but works with text as link.

<a href="mailto:foo@bar.com"><img src="images/mail.jpg" alt="" /></a>

Does work and fires up the mail app.

<a href="http://www.mysite.com"><img src="images/home.jpg" alt="" /></a>

Works as expected.

However, the ‘touch-and-hold’ event, which pops up with normal text links works differently for images. For mailto links this is New Message/Add to Contacts/Copy/Cancel and for tel links it is Call/Add to Contacts/Copy/Cancel.
With image links, the pop-up gives the options Open/Save Image/Copy/Cancel for both the mailto and tel links, with the Open option failing for tel links “because the address is invalid”.

For my website, I would like to include my email and phone details, with the ability to mail/call directly, or to add it to the contacts. I found a related and unresolved question here:
Dial a number using Phonegap in IPhone

Any help would be greatly appreciated.

Curiously, when saved to the home screen on an iOS device, and ran as a web-app, the touch-and-hold gesture results in no popup at all for the image links, whereas the text links work fine.
(To enable a website to be run as a web-app, I added the following code in the head of the page:)

<meta name="apple-mobile-web-app-capable" content="yes" />

Can anybody reproduce this behaviour using the above link, and have clues which versions of iOS may be affected? I tested it on iPodTouch iOS 5.0.1 and iPad iOS 4.3.3. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:21:48+00:00Added an answer on May 29, 2026 at 5:21 am

    I noticed this same problem. To work around it, I used a CSS background-image instead of an img tag:

    <style type="text/css">
        .tel { 
            width: 102px; 
            height: 32px; 
            display: inline-block; 
            background: url(phone.png); 
        }
    </style>
    
    <a class="phone" href="tel:+1-000-000-0000"><span class="tel"></span></a>
    

    Note that I specifically leave no whitespace inside of the a tag because otherwise the iPhone shows it next to the image (it appears for me as an empty underline, but this depends on your own CSS).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using regex snippets to parse smileys into images, and encountering problems with the
I'm encountering a very strange problem using g++ 4.1.2. I have a very basic
Greetings, I'm using appcelerator to develop some apps, but I'm encountering some problems. Every
I've been using zc.buildout more and more and I'm encountering problems with some recipes
I have a small web app for reporting and im encountering problems with it.
I have tried invoking Ant programmatically, but I am encountering this error Exception in
Every now and then I'm encountering problems with scripts hosted on Github which have
Iv been encountering problems with disk space when deploying my app to a pocket
Hi i am encountering problems trying to post a WebRequest under Https. i received
I'm encountering problems with my .NET Framework 3.0 SP1 application. It is a C#

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.