<html>
<head>
<title> thse is a new document</title>
<script>
function valid()
{
if(f1.t1.value==""||f1.t2.value=="")
{
alert("please enter the all feilds");
}
else
{
var s1=f1.t1.value;
var s2=f1.t2.value;
if(s1==s2)
{
alert("password is valid ");
window.location="table.html";
}
else
{
alert("username an password is not match");
}
}
}
</script>
</head>
<body>
<form name ="f1">
<h1><center>dr dy patil pratistan society</center>
enter the user name:<input type="text" id="t1">
enter username/password:<input type ="password" id="t2">
<input type="button" value="submit" onclick="valid()">
</body>
</html>
table.html-
<html>
<head>
<title> thse is table example</title>
<table border=5 laign=center>
<tr>
<th>sr no</th>
<th>subject name</th>
<th>internal</th>
<th>external</th>
<th>total</th>
</tr>
<tr align= center>
<td>301</td>
<td>oose</td>
<td>15</td>
<td>50</td>
<td>100</td>
</tr>
<tr align= center>
<td>302
<td>wt
<td>17
<td>55
<td>85
</tr>
<tr align= center>
<td>303</td>
<td>dot net</td>
<td>17</td>
<td>45</td>
<td>95</td>
</tr>
</table>
</body></html>