+ 1

HTML button

Hello, I have got a question. How can I create a HTML button? I saw an exampe that didn't help me a lot so I would need another example please. Thank you.

17th Dec 2017, 7:56 AM
Mihnea-Stefan Bondor
Mihnea-Stefan Bondor - avatar
5 Answers
+ 2
Try this: <button onclick="alert('Button clicked')"></button>
17th Dec 2017, 8:19 AM
CalviÕ²
CalviÕ² - avatar
17th Dec 2017, 7:59 AM
CalviÕ²
CalviÕ² - avatar
+ 1
Thank you.
17th Dec 2017, 8:09 AM
Mihnea-Stefan Bondor
Mihnea-Stefan Bondor - avatar
+ 1
Ok, thank you. :)
17th Dec 2017, 8:29 AM
Mihnea-Stefan Bondor
Mihnea-Stefan Bondor - avatar
0
But do you know how can I make it to make an alert box when someone presses it?
17th Dec 2017, 8:13 AM
Mihnea-Stefan Bondor
Mihnea-Stefan Bondor - avatar