JSFiddle - React, Tailwind, and code Playground
by wrxsti85
HTML
<h1>This is the greatest and best game in the world...Tribute!</h1>
<br /><br />
<form name="myForm" action="" method="">
Your Score:<input name="inputbox" type="text" value="0" style="border: none;" readonly>
</form>
<input type="submit" onclick="addOne(); checkNumber();" value="Google +1">
JavaScript
addOne = function() {
document.myForm.inputbox.value = document.myForm.inputbox.value * 1 + 1;
if (myForm.inputbox.value == 25) {
alert("You Win!");
}
else {
}
};