Sets or retrieves a text alternative to the graphic.
Syntax
HTML <ELEMENT ALT = sTxt ... > Scripting object.alt [ = sTxt ]
Possible Values
sTxt String that specifies the text to display as an alternative to the graphic. The property is read/write with no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.
Remarks
The text is used to replace the graphic for text-only browsers, to display in the window before the graphic has loaded, and to act as a ToolTip when the user hovers the mouse over the graphic.
Example
This example uses the ALT attribute to indicate that the icon displayed denotes a read/write property.
Sample Code
<IMG SRC="http://example.microsoft.com/rw.gif" ALT="Read/Write Property">
Applies To