Skip to content

Commit 34020cd

Browse files
committed
Adding html button
1 parent 61ca458 commit 34020cd

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

c/ravijohnmark.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include<stdio.h>
2+
void main()
3+
{
4+
printf("Hello World");
5+
}

html/ravijohnmark.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<html>
2+
<head>
3+
<script>
4+
function myFunction() {
5+
document.getElementById("hello").innerHTML = "Hello World!";
6+
}
7+
</script>
8+
</head>
9+
10+
<body>
11+
12+
<button onclick="myFunction()">Hello World</button>
13+
14+
<p id="hello"></p>
15+
16+
</body>
17+
</html>

0 commit comments

Comments
 (0)