0
Buttons
How do you make it so that something happens when you press a button on the web code?
1 Resposta
+ 10
Using the 'onclick' attribute
<button onclick="clicked()" > Text </button>
Then you can use JS for your work ~
<script>
function clicked (){
alert("Just a test!")
}
</script>