Using Color Attributes: how document colors can be changed : Color « Development « JavaScript DHTML






Using Color Attributes: how document colors can be changed


<HTML>
<HEAD>
<TITLE>Changing Colors</TITLE>
<SCRIPT LANGUAGE="JavaScript"><!--
    document.fgColor="white"
    document.linkColor="yellow"
// --></SCRIPT>
</HEAD>
<BODY>
<H1>Changing Colors</H1>
<P>Here is a <A HREF="nowhere">sample link</A>.</P>
<SCRIPT LANGUAGE="JavaScript"><!--
    document.bgColor="black"
// --></SCRIPT>
</BODY>
</HTML>

           
       








Related examples in the same category

1. Using Colors in JavaScript
2.Code for the Actual JavaScript Code and Color Selectors
3.Using setInterval () to Repeatedly Change the Document Background Color
4.Color Sampler