i am trying to combine the 2 following onclick commands. I have tried every combination i can think of but can only get the first comand to execute.
the commands are for
<script>
var count1
</script>
the two onclick commands are:
1. onclick="count1 =count+1"
2.onclick="if(c ount1%2==1)this .style.backgrou nd='red' ;else this.style.back ground='white'; "
the commands are for
<script>
var count1
</script>
the two onclick commands are:
1. onclick="count1 =count+1"
2.onclick="if(c ount1%2==1)this .style.backgrou nd='red' ;else this.style.back ground='white'; "
Comment