<!DOCTYPE html> <html> <body> <h1>My First JavaScript</h1> <p> JavaScript can react to events. Like the click of a button: </p> <button type="button" onclick="alert('Welcome!')">Click Me!</button> </body> </html>
Comments 2