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

'aLink' Example

    
<html>
<body onLoad="goColor();">
<script>
    function goColor() {
        document.body.aLink = "red";
    }
</script>
<a href="http://www.java2s.com/">java2s.com (click to turn red)</a>
</body>
</html>

    
      
      








Related examples in the same category

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