-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (29 loc) · 875 Bytes
/
index.html
File metadata and controls
32 lines (29 loc) · 875 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
<!DOCTYPE html>
<html>
<head>
<title>Computer Based Test</title>
<link rel="stylesheet" href="resource/login.css" />
<meta name="viewport" content="width=device-width">
</head>
<body>
<div id='container'>
<h2>New Account</h2>
<div id="page">
<form method="GET" action="resource/app.html">
<div id='formlog'>
<label for="username">Name :</label>
<input type="text" id="name" required />
<br />
<input type="submit" onclick="setName();" value="Start Quiz" />
</div>
</form>
</div>
</div>
<script>
function setName() {
var val = document.getElementById('name').value;
sessionStorage.setItem('name', val);
}
</script>
</body>
</html>