Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Tooltips in iPhone's Mobile Safari?

It says here that "Similar to hover styles, tooltips are not displayed unless the user touches and holds a clickable element with a tooltip.", but when holding down on an image, it instead shows a menu with the option to save the image.

http://developer.apple.com/safari/library/documentation/AppleApplications/Refere nce/SafariWebContent/CreatingContentforSafarioniPhone/CreatingContentforSafarion iPhone.html#//apple_ref/doc/uid/TP40006482-SW21

Is there still a way to see tooltips, or is this outdated?

Macbook Pro (silver), Mac OS X (10.6.2), iPhone 2G

Posted on Jan 24, 2010 1:18 PM

Reply
Question marked as Best reply

Posted on Jan 25, 2010 4:12 PM

It's not working for me. Tapping once on an image with alt and/or title text doesn't seem to do anything.

As a prominent example, if visiting xkcd.com:

<img src="http://imgs.xkcd.com/comics/science_montage.png" title="The rat's perturbed; it must sense nanobots! Code grey! We have a Helvetica scenario!" alt="Science Montage" />

Neither of the text for those attributes appear.

Likewise, title attribute for something like <a href="something.html" title="This text">Else</a> doesn't show up either.
8 replies
Question marked as Best reply

Jan 25, 2010 4:12 PM in response to neuroanatomist

It's not working for me. Tapping once on an image with alt and/or title text doesn't seem to do anything.

As a prominent example, if visiting xkcd.com:

<img src="http://imgs.xkcd.com/comics/science_montage.png" title="The rat's perturbed; it must sense nanobots! Code grey! We have a Helvetica scenario!" alt="Science Montage" />

Neither of the text for those attributes appear.

Likewise, title attribute for something like <a href="something.html" title="This text">Else</a> doesn't show up either.

Jan 25, 2010 4:59 AM in response to g-pod

Yes, you can view tooltips in the iPhone Safari browser. Do not tap-and-hold, just tap. For clickable text with tooltips, tap-and-hold brings up a JavaScript Open/Cancel dialog, tapping open displays the tooltip. For a clickable image with a tooltip, tap-and-hold does bring up the Save Image dialog (and you cannot access the tooltip). But in both cases, a simple, single tap brings up the tooltip.

Try the many examples on this page: http://www.walterzorn.com/tooltip/tooltip_e.htm.

Jan 25, 2010 4:28 PM in response to g-pod

Back to web design school for you... 😉

The 'prominent examples' you list below are HTML attribute (title or alt) tags, which many browsers, but NOT the iPhone's Mobile Safari, render as tooltips. Tooltips which are implemented via javascript are accessible on the iPhone via a tap.

http://javascript.about.com/library/bltip1.htm

Also, see this related page in the iPhone developer documentation (linked to from the page you posted above).

Jan 25, 2010 4:35 PM in response to neuroanatomist

Well, I meant tooltips in the informal sense, knowing that it's up to the browser how to handle alt and title attributes, such as the days when Netscape/Mozilla/Firebird/Firefox made the distinction between treating title as a tooltip, and alt as not (unlike IE).

I don't really consider JS-powered tooltips true tooltips, nor CSS-powered tooltips either. I was curious about how to access the title attribute text for any element on the iPhone, given that Mobile Safari doesn't seem to provide even an alternative to the defacto tooltip seen on desktop browsers.

Tooltips in iPhone's Mobile Safari?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.