faqts : Computers : Programming : Languages : JavaScript : Images

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 14 people (57%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

Is there a way to disable Tool Tips using javascript? I want alt text - I don't want it displayed

Mar 17th, 2003 06:03
Klaus Bolwin, W C,


Tooltips are not related to alt text:
1. the alt text should be displayed, if an image can not be loaded.
2. the tooltip text is set using the title attribute.
This works well in all known browsers, but not in MSIE. MSIE is
displaying the alt text as tooltip. It's a bug.
Here the workaround:
<img src="image.gif" alt="alt text" title=""> 
assign the empty string as value to the title attribute.