E
extremerep
My task is to change the value of a button and then make it functional
with the onClick handler. Changing the value to "Play Again" works, but
making the onClick work accordingly does not. The following is a
snippet of the script. What is keeping it from working?
function displaycards1(){
document.form1.reveal1.value="Play Again";
document.form1.reveal1.onClick="setcards();";
}
</script>
<form name="form1">
<input id="reveal1" type="button" value="reveal"
onClick="which_clicked=this; displaycards1(); return false;">
</form>
I greatly appreciate it.
Thanks.
Edit/Delete Message
with the onClick handler. Changing the value to "Play Again" works, but
making the onClick work accordingly does not. The following is a
snippet of the script. What is keeping it from working?
function displaycards1(){
document.form1.reveal1.value="Play Again";
document.form1.reveal1.onClick="setcards();";
}
</script>
<form name="form1">
<input id="reveal1" type="button" value="reveal"
onClick="which_clicked=this; displaycards1(); return false;">
</form>
I greatly appreciate it.
Thanks.
Edit/Delete Message