• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2462
  • Last Modified:

Tooltip attribute of <img> tag?

Is there a tooltip attribute, or some such way or easily setting a default tooltip for the object?

ie, myImage.toolTip = "Click here for more info"

I know how to make a custom tooltip using DHMTL, but I'm kind of lazy and looking for a quick fix before I do that.  Thanks.

Scott.
0
kbach
Asked:
kbach
  • 2
1 Solution
 
ZylochCommented:
Hi kbach,

Yes:

<img src="hi.gif" title="Tooltip" />

Regards,
Zyloch
0
 
kbachAuthor Commented:
alt tag...that's what I was thinking of.  In IE the alt tag is the default tooltip, and I'm only coding this for IE...thanks anyway
0
 
ZylochCommented:
Ok! Actually, alt is supposed to be the text that replaces the image if the image can't display. Title is the correct attribute, but to each their own :)
0
 
softplusCommented:
"correct attribute" but that doesn't mean IE will accept it as such :)), how I love standards ...
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now