<html>
<form name="Form1">
<input type="button"
value="Green"
onClick = "document.bgColor='green'">
</form>
<form name="Form2">
<input type="button"
value="Blue"
onClick = "document.bgColor='blue'">
</form>
<script language="JavaScript">
<!--
for(i=0;i<document.forms.length;i++)
{
document.write((i+1));
document.write(" . <i><b>",document.forms[i].name,"</b></i><br>");
}
-->
</script>
</html>
|