-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjs.html
42 lines (40 loc) · 981 Bytes
/
js.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!doctype html>
<html lang="en">
<head>
<style>
body{
font-family: sans-serif;
text-align: center;
padding: 50px;
}
button{
padding: 10px 20px;
font-size: 20px;
cursor: pointer;
background-color: blue;
color: white;
border-radius: 5px;
border: none;
}
button:hover{
background-color: darkgray;
}
</style>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Javascript</title>
</head>
<body>
<h1>WELCOME TO JAVASCRIPT BASICS</h1>
<P>Click the button below to see what happens</P>
<button id="button_1">Click Me Please !!!</button>
<script >
const button=document.getElementById("button_1")
button.addEventListener("click", function (){
alert("Hello, Good Work")
});
</script>
</body>
</html>