-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInternalJS1.html
45 lines (33 loc) · 1.01 KB
/
InternalJS1.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
43
44
45
<!DOCTYPE html>
<html>
<body>
<!-- Always check syntax and spelling and letters -->
<!-- Made with Visual Studio Code -->
<title>Internal JS1</title>
<h1>Javascript in Body</h1>
<p id="demo">Welcome to Javascript</p>
<button type="button" onclick="myFunction()"> Try it </button>
<button type="button" onclick="myFunctions()"> Reset </button>
<script>
function myFunction(){
document.getElementById("demo").innerHTML="Hello Javascript! Welcome to Programming Class.";
}
function myFunctions() {
document.getElementById("demo").innerHTML="Welcome to Javascript";
}
</script>
</body>
</html>
<!-- Julian's code
<html>
<body>
<h1 >Javascript in Body</h1>
<p id="demo">Welcome to Javascript</p>
<button type="button" onclick="myFunction()"> Try it </button>
<script>
function myFunction() {
document.getElementById("demo").innerHTML="Hello Javascript! Welcome to Programming Class.";
}
</script>
</body>
</html> -->