Directly on the code ...
<script language= "JavaScript" > Function login ()
{
Document.form1.action= "Loginaction_login";
window.parent.location.href= "Loginaction_login"//This method will not pass the value in input, but can also achieve the entire page of the jump
Document.form1.submit ();
}
function Register ()
{
Document.form1.action= "Loginaction_register";
Document.form1.submit ();
window.parent.location.href= "Loginaction_register"//This method will not pass the value in input, but can also achieve the entire page of the jump
}
</Script>
<body>
<div id= "Login" >
<div class= "Left" >
<div class= "Text" >
Welcome to the use of university personnel and vehicle Management system, please log in first, if not registered in this site, please register first.
</div>
<div class= "Input" >
<form name= "Form1" method= "Post" target= "_top" >
<tr>
<td></td>
<td><input class= "User" type= "text" name= "username" ></td>
</tr>
<HR size= "1" width= "235px" >
<br>
<tr>
<td></td>
<td><input class= "password" type= "password" name= "password" ></td>
</tr>
<HR size= "1" width= "235px" >
<br>
<tr>
<td></td>
<td>
<select class= "Select" name= "Role" >
<option value= Administrator > Admin </option>
<option value= "user" > User </option>
</select>
</td>
</tr>
<HR size= "1" width= "235px" >
<br>
<tr>
<td><input class= "Submit" type= "button" value= "Login" onclick= "login ()" ></td>
<td> </td>
<td><input type= "button" value= "Forget password" ></td>
<td> </td>
<td><input type= "button" value= "register" onclick= "register ()" ></td>
</tr>
</form>
</div>
</div>
</div>
</body>