+ 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
4 Answers
+ 7
I use
<input type=âbuttonâ
value = âbuttonâ
onclick = âdocument.write(âStuff stuff stuffâ)
in HTML.
đ€·ââïž
+ 3
use onclick event
getElement by id/tagname/classname
and document.write
+ 3
<button onclick = "function();"/>