'alt' Example : alt « Javascript Properties « JavaScript Reference

'alt' Example

    
<html>
<body>
<script>
    function function1() {
        document.all.myImage.alt = 'alt text';
    }
</script>
<img id="myImage" onmouseover="function1();" src="yourimage.jpg">
</body>
<html>

    
      
      








Related examples in the same category

1.'alt' Syntax and Note
2.'alt' is applied to