<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<h1>JavaScript Button</h1>
<button id="btn">Click Me</button>
<script>
document.getElementById("btn").onclick = function() {
alert("Hello World");
};
</script>
</body>
</html>⚠️Content was pasted as plain text and auto-formatted as a code block. Use the Code Block button in the editor for proper formatting.