+ 1
Alert example
<!DOCTYPE html> <html> <body> <p>Click the button to display an alert box.</p> <button onclick="myFunction()">Click me</button> <script> function myFunction() { alert("I am an alert box!"); } </script> </body> </html>
1 Réponse
+ 2
Good example. Continue learning JS