Foreground Color

[Total: 0    Average: 0/5]

Enter A Color Choice in a text box and it will change the Color for the Entire Page.

Head Code:

<Script>
function ch(n) {document.fgColor = n}
</Script>

Body Code:

b>Change the color of text on this Page</b>

<form name = "f1">
Please enter the NAME or CODE for your Color : <input type = "textbox" name = "t1" value = "">
<input type = "button" onClick="ch(document.f1.t1.value)" value = "Change">
</form>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *