Change color of form Components

[Total: 0    Average: 0/5]

This sets the colors of the form components using the style properties.

Body Code:

<form name=exf1>
<input style="color:#000440;background-color:#d0d0d0;" type=text name=t1 value="text value">
<input type=text readonly value=false name=toggle>
<input type=button name=b1 value="Click Me" onclick="doIt()">
<input type=button name=b2 value="Click Me" onclick="doThat()">
var toggle=false;
function doIt()
function doThat()

Times Viewed: 1

Leave a Reply

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