<p><strong>My first Javascript</strong></p>
<button type="button" on-click="myfunction()">Click here</button>
<script> function myfunction() {document.getElementById("demo").innerHTML = "Hello its Wednesday";}</script>
<p id="demo">Hello its Tuesday</p>
Any assistance would be much appreciated. I am learning the W3Schools tutorials and I can't seem to move forward. The results dont's show its a "Wednesday"!
HTML JavaScript - Buttons
in HTML/XHTML
Posted · Edited by residentof254
Any assistance would be much appreciated. I am learning the W3Schools tutorials and I can't seem to move forward. The results dont's show its a "Wednesday"!
I can't quite make the light bulb to go on.