-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (31 loc) · 1.03 KB
/
index.html
File metadata and controls
32 lines (31 loc) · 1.03 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<div>
<p for="name"
>
Qn] Kiske saath(starts with l) _____ kya karna hai
(starts with g) _____ put a space between the two words
❤️💕😎 keep everything smallercase ?</p>
>
<input type="text" name="name" id="cool" />
</div>
<a href="index2.html" id="clickHere" style="display: none">Click here</a>
</body>
<script>
document.getElementById("cool").addEventListener("input", function () {
var inputValue = this.value.trim(); // Get the trimmed input value
var clickHereLink = document.getElementById("clickHere");
if (inputValue === "lulu gulugulu") {
clickHereLink.style.display = "block"; // Show the link
} else {
clickHereLink.style.display = "none"; // Hide the link
}
});
</script>
</html>