Skip to content

Commit 5a4f625

Browse files
authored
alert_box.html
1 parent d4f6825 commit 5a4f625

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

alert_box.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
5+
<p>Click the Button to display alert box.</p>
6+
7+
<button onclick="myFunction()">Try it</button>
8+
9+
<script>
10+
function myFunction() {
11+
alert("Hello! I am an alert box!");
12+
}
13+
</script>
14+
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)