$\require{cancel}$
<script> "use strict" function Button1Call() { console.log("Button 1 was pressed") } <input type="button" value = "I am A button" id="Button1" onclick="Button1Call()"/>
function
is required.
<li> <input type="button" value = "No Presses" id="Button2"/> <script> let button = document.getElementById("Button2") button.addEventListener("click", ButtonPress2) let pressCount = 0 function ButtonPress2() { console.log("Button Press 2 was called") pressCount++ button.value = pressCount.toString()+ " presses" }
toString()
method.
button.value
value
attribute.
pressCount
<script src="button3.js" defer > </script> <input type="button" value = "Anoter One?" id="Button3"/>
<script>
tag.
</script>
is needed.