Haphy.com

Blog

Stop Internet Explorer displaying alt attribute as a tooltip

Internet Explorer has a habit of wrongly displaying the alt attribute of an image as a tooltip. This can prove irritating when using images as links or when trying to implement an alternative tooltip solution such as Prototip.

There is a simple way to stop IE using the alt attribute as a tooltip:

  1. Add a title attribute to your image. The contents of this attribute will be used as a tooltip instead.

A blank title attribute will prevent IE displaying a tooltip at all.


Leave a Reply

© 2008 - Peter John Hartree: Freelance website developer based in Chichester, UK.