+ 2
What I can do to show some text after clicking onto a button?
2 odpowiedzi
+ 6
You need JavaScript to handle click event in Html. The easiest option is writing a JavaScript function and call the function on the onclick attribute of the html.
You will need some dom manipulation.
document.getElementbyId which will be stored in a variable.
or this
<button onclick="this.innerHTML=Date()">The time is?</button>
or any other element you want to use.