6th Jul 2017, 7:21 AM
Ishaq Za'rour
11 Answers
6th Jul 2017, 7:45 AM
Ledio Deda
Ledio Deda - avatar
+ 1
what do u want to button to perform
6th Jul 2017, 7:36 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
You should write some code between onclick { //some code} This way, when you click the button, the written code will be executed...
6th Jul 2017, 7:40 AM
Ledio Deda
Ledio Deda - avatar
+ 1
But what happens that the alert appears before I press the button
6th Jul 2017, 7:41 AM
Ishaq Za'rour
+ 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>
6th Jul 2017, 7:42 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
An alert that says hello world
6th Jul 2017, 7:39 AM
Ishaq Za'rour
0
I did
6th Jul 2017, 7:40 AM
Ishaq Za'rour
0
Thx
6th Jul 2017, 7:43 AM
Ishaq Za'rour
0
Thx Guyz for the help
6th Jul 2017, 7:46 AM
Ishaq Za'rour
0
If you still dont understand just ask
6th Jul 2017, 7:46 AM
Ledio Deda
Ledio Deda - avatar
0
No I fixed it
6th Jul 2017, 7:57 AM
Ishaq Za'rour