+ 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 odpowiedzi
+ 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();"/>