Tooltip attribute of <img> tag?

Posted on 2005-05-13
Last Modified: 2013-11-19
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.

Question by:kbach
    LVL 36

    Accepted Solution

    Hi kbach,


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

    LVL 1

    Author Comment

    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
    LVL 36

    Expert Comment

    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 :)
    LVL 13

    Expert Comment

    "correct attribute" but that doesn't mean IE will accept it as such :)), how I love standards ...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Suggested Solutions

    I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
    JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
    The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now