-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInputPractise.html
More file actions
35 lines (27 loc) · 907 Bytes
/
Copy pathInputPractise.html
File metadata and controls
35 lines (27 loc) · 907 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
35
<html>
<head>
<title>NAME AND PASSWORD MATCH</title>
<h1>Name and password matching Machine</h1>
<script>
function func1()
{
var x = document.getElementById("text1").innerHTML.value
var y= document.getElementById("password").innerHTML.value
if(x==y)
alert("name and password are same")
else
alert("name and password are different")
}
</script>
</head>
<body>
<input id="text1" placeholder="enter your name" >
<br>
<br>
<input type="password" id="password" placeholder="enter your password" >
<br>
<br>
<br>
<button onclick="func1()" >CLICK ME</button>
</body>
</html>