forked from mohsinkd786/js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SampleForm.html
35 lines (35 loc) · 1.14 KB
/
SampleForm.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
<html>
<head>
<script src="forms.js" type="text/javascript"></script>
<link rel='stylesheet' type="text/css" href='styles.css'></link>
</head>
<body>
<div id='error-message'></div>
<form>
<table>
<tr>
<th>Username</th>
<td>
<input type="text" name="username" id="user"/>
</td>
</tr>
<tr>
<th>Password</th>
<td>
<input type="password" name="password" id="pass"/>
</td>
</tr>
<tr>
<td><input type="button" value="login" onclick="alert('Hello I was clicked')" />
</td>
<td>
<input type="button" value="Submit" onclick="saveUserDetails()"/>
</td>
<td>
<input type="button" value="Validate" onclick="validate()"/>
</td>
</tr>
</table>
</form>
</body>
</html>