Forms Colors By Class

[Total: 0    Average: 0/5]

This example shows how to change the background and font color of a textbox.

Head Code:

.t0 { color: brown; background-color: pink; }
.t1 { color: darkblue; background-color: gold; }

Body Code:

<form name=f1>
<textarea class=t1 id=textone>stuff in the box
<BR><input type=button value="Change" onclick="doIt()">
var _I=1;
function doIt()
  /* example is for DOM browsers only */

Times Viewed: 9

Leave a Reply

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