Line 9: | Line 9: | ||
<h1 id="H1"> Question 1</h1> | <h1 id="H1"> Question 1</h1> | ||
<p> Men can also get yeast infections? </p> | <p> Men can also get yeast infections? </p> | ||
− | <button id="yes" onclick="yesAnswer(counter)"> Yes </button> | + | <button id="yes" onclick="counter=yesAnswer(counter)"> Yes </button> |
− | <button id="no" onclick="noAnswer(counter)"> No </button> | + | <button id="no" onclick="counter=noAnswer(counter)"> No </button> |
<h2 id="Commentary"></h2> | <h2 id="Commentary"></h2> | ||
<div class="clear"></div> | <div class="clear"></div> | ||
Line 30: | Line 30: | ||
document.getElementById("Commentary").innerHTML="Oops!"; | document.getElementById("Commentary").innerHTML="Oops!"; | ||
} | } | ||
− | + | return cnt; | |
} | } | ||
Line 41: | Line 41: | ||
document.getElementById("Commentary").innerHTML="Oops!"; | document.getElementById("Commentary").innerHTML="Oops!"; | ||
} | } | ||
+ | return cnt; | ||
} | } | ||
Revision as of 13:32, 25 May 2018
Question 1
Men can also get yeast infections?