+ 1
Why isn't the bottun working
11 odpowiedzi
+ 2
There it is
https://code.sololearn.com/W12F6vS4Ao16/?ref=app
+ 1
what do u want to button to perform
+ 1
You should write some code between onclick {
//some code} This way, when you click the button, the written code will be executed...
+ 1
But what happens that the alert appears before I press the button
+ 1
ok.. first.. assign the event onclick to the button as..
<button onclick="myfunction()">Click Me!</button>
and then make a paragraph and give it an id
<p id="button"></p>
0
An alert that says hello world
0
I did
0
Thx
0
Thx Guyz for the help
0
If you still dont understand just ask
0
No I fixed it