forked from 0xtaufeeq/Git-and-Github-RVU
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJeevan_EG.html
More file actions
34 lines (33 loc) · 971 Bytes
/
Copy pathJeevan_EG.html
File metadata and controls
34 lines (33 loc) · 971 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Js Practise</title>
<style>
body{
text-align: center;
padding-top: 200px;
padding-right: 100px;
background-color: aquamarine;
}
</style>
</head>
<body>
<label for="name">First Name:</label>
<input type="text" id="text1" ><br><br>
<label for="name">Second Name:</label>
<input type="text" id="text2" ><br><br>
<button value="sub" onclick="myevent()">Submit</button>
<p id="para"></p>
<script>
function myevent()
{
var x = document.getElementById("text1").value;
var y = document.getElementById("text2").value;
document.getElementById("para").innerHTML="Your Name: "+ x+y;
}
</script>
</body>
</html>