'alt' Syntax and Note : alt « Javascript Properties « JavaScript Reference

'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

    

      
      








Related examples in the same category

1.'alt' Example
2.'alt' is applied to