+ 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 Antworten
+ 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