-
Notifications
You must be signed in to change notification settings - Fork 23
/
index.js
44 lines (32 loc) · 906 Bytes
/
index.js
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
// let count=0
// function test(){
// count=count+1;
// console.log(count);
// let t = document.getElementById("heading");
// if(t.innerHTML=="We are from IT department.")
// {
// t.innerHTML="We are from Nsec";
// }
// else{
// t.innerHTML="We are from IT department.";
// }
// }
// document.getElementById("btn").addEventListener("click", test);
function myfun(){
let c = 2535;
let d = 5645;
let x = c+d;
document.write("emtered the sum of "+c+"&"+d);
let v = document.forms['validation']['name01'].value;
let v1 = document.forms['validation']['name02'].value;
if(Number(v)==x){
alert("Captcha verified Successfully");
}
else{
alert("invalid captcha")
}
// if(Number(v))
// {
// alert("enter only text");
// }
}