+ 3

How can I conbine a button in HTML with a javascript code (e.g. an alert box)?

I am programming a simple Thing but I want to Combine a button with a JavaScript code

1st Feb 2019, 2:25 PM
Maxi Senk
Maxi Senk - avatar
1 Odpowiedź
+ 6
<button onclick="alert('hello world!')">click me</button>
1st Feb 2019, 3:30 PM
Jax
Jax - avatar