Hello,
i have 2 questions.
1.i have manage to change the color of the button document.myForm.box5.style.backgroundColor="LightSteelBlue"
but is it possible to change the text color of a
button?
2. and most important is that how can the computer
play by inserting X or either O in the boxes?
its easy to make the first move as follow
if(document.myForm.box5.value==""){
document.myForm.box5.value="O"
}
but how can the computer move by inserting X as well randomly.
i have 2 questions.
1.i have manage to change the color of the button document.myForm.box5.style.backgroundColor="LightSteelBlue"
but is it possible to change the text color of a
button?
2. and most important is that how can the computer
play by inserting X or either O in the boxes?
its easy to make the first move as follow
if(document.myForm.box5.value==""){
document.myForm.box5.value="O"
}
but how can the computer move by inserting X as well randomly.