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