Mega Code Archive

 
Categories / JavaScript Reference / Javascript Properties
 

Alt Syntax and Note

Note: Read and write property.  Set the element alternative text. Browser will display the text when element cannot be displayed, or in a tooltip box.      Syntax:      document.getElementById("elementID").alt = value document.all.elementID.alt = value // IE only