+ 5

Html buttons?

how can i make a working html button with JS for example a button that will write something when you click it

10th May 2018, 12:48 PM
Youness Oubelkacem
Youness Oubelkacem - avatar
4 Answers
+ 7
I use <input type=“button” value = “button” onclick = “document.write(“Stuff stuff stuff”) in HTML. đŸ€·â€â™‚ïž
26th May 2018, 11:23 PM
đŸșMichaelđŸș
đŸșMichaelđŸș - avatar
+ 3
use onclick event getElement by id/tagname/classname and document.write
10th May 2018, 12:58 PM
Fery Ardiansyah
Fery Ardiansyah - avatar
+ 3
<button onclick = "function();"/>
10th May 2018, 1:46 PM
Paul Grasser
Paul Grasser - avatar