-
Notifications
You must be signed in to change notification settings - Fork 2
/
anohter.html
56 lines (51 loc) · 1.64 KB
/
anohter.html
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
45
46
47
48
49
50
51
52
53
54
55
56
<html>
<!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>me.com</title>
</head>
<body>
<p id="demo">
your function of js appeared here ......
</p>
<script src="classes.js"></script>
<div id="wrapper">JavaScript is fun!</div>
<input type="text" name="myNum1" onkeypress="numCheck()">
<input type="text" name="myNum2" onkeypress="numCheck2()">
<script>
function numCheck() {
message("Number: " + !isNaN(event.key));
return !isNaN(event.key);
}
function numCheck2() {
message("Not a number: " + isNaN(event.key));
return isNaN(event.key);
}
function message(m) {
document.getElementById('wrapper').innerHTML = m;
}
</script>
<div id = "fit"></div>
<form action="anotherpage.html" method="get" onsubmit="return msg()">
<input type="text" id="fn" placeholder="fname" name="fname" />
<input type="text" id = "ln" placeholder="lname" name="lname" />
<input type="text" id = "age" placeholder="age" name="age" />
<input type="submit" value="submit" />
</form>
<script>
</script>
<h1>
go backward !
<input type="button" value="Click" onClick="history.back();">
you directed to the next Page jani love you</h1>
<form onsubmit="return checkpassword();">
enter a password<br>
<input type="text" id="f1">
<input type="submit" value="submit Form">
</form>
</body>
</html>
</html>