Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
<button onclick="yourFunctionInJavaScript()">Click me</button> Like most tags, need open and close, unless: <input type="button" value="Click me" onclick="functionInJavaScript()" /> Obs: /> the slash is optional, but i like to put it when the tag doesn't need be closed </tagClose>
25th Oct 2020, 8:57 AM
Marcelo Anjos
Marcelo Anjos - avatar