0

plz answer need help

how does the on click element work and i use it to execute other th8ngs if so can you list a few

15th Aug 2016, 12:33 AM
Dragon-codex
Dragon-codex - avatar
2 odpowiedzi
0
<button onclick="c()">Click Me</button> <p id="c"> </p> <script> function c() { document.getElementById("c").innerHTML = "You clicked that button"; } </script>
15th Aug 2016, 2:31 AM
freshnewname
freshnewname - avatar
0
thanks you for showing how it works now can you explain it
15th Aug 2016, 2:37 AM
Dragon-codex
Dragon-codex - avatar