anyone know how to make the colour text box w2 change to a random colour when button clicked please ?
</html>
<FORM NAME = frmOne>
StartA X: <INPUT TYPE = Text NAME = x SIZE = 5 value ="0">
Two B Y: <INPUT TYPE = Text NAME = y SIZE = 5 value ="1">
Three D W: <INPUT TYPE = Text NAME = w SIZE = 5 value ="0">
W2+: <INPUT TYPE = Text NAME = w2 style="background-color:#444999" SIZE = 5 value = ("0") >
W3:<INPUT TYPE = Text NAME = w3 SIZE = 5 value = "0" >
<P>
Total Z: <INPUT TYPE = Text NAME = z SIZE = 5 value = "0">
<P>
<p>
<Input Type = Button NAME = b1 VALUE = "Pluss One" onClick = calculate(),colourchange() >
</FORM>
<SCRIPT language = JavaScript>
function calculate()
{
var randomnumber=Math.floor(Math.random()*99)
A = document.frmOne.x.value
B = document.frmOne.y.value
D = document.frmOne.w. value
A = Number(A)
B = Number(B)
D = Number(D)
C = (A + B)
D = (D + 1)
E = randomnumber
document.frmOne.z.value = C
document.frmOne.x.value = B
document.frmOne.w.value = D
document.frmOne.w2.value = E
document.frmOne.y.value = A+1
document.frmOne.w3.value = A+B+C+D+E
}
</SCRIPT>
<SCRIPT language = JavaScript>
function colourchange()
{
var randomnumber2=Math.floor(Math.random()*999999)
if
B > 1
then w2= "background-color:#randomnumber2"
else
w2= "background-color:#987654"
}
</SCRIPT>