+ 2
How to use button in HTML with JAVA SCRIPT
please provide code with discription
3 odpowiedzi
+ 2
You should use onclick="myFunction()" if you want your button to be used on js
html:
<button onclick="myFunction()">Click</button>
js:
function myFunction() {
// Your code here
}
0
thanksRuben Perdigao
0
@Ruben Perdigao you missed an n in your code
right code:
js:
function myFunction
|
that's the
error