Haphy.com

Blog

Archive for the ‘Internet Explorer’ Category

Stop Internet Explorer displaying alt attribute as a tooltip

Sunday, March 9th, 2008

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.

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