87,910
社区成员
发帖
与我相关
我的任务
分享
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>无标题文档 </title>
</head>
<script language="javascript">
function checkq()
{var us=document.getElementById("us");
var pw=document.getElementById("pw");
var hh=document.getElementById("hh");
if (us.value!='' && pw.value!=''){
hh.submit()
}
else
{
alert('帐号或密码不能为空');
}
}
</script>
<body>
<form action="测试6.aspx" method="get" name="hh">
<table align="right" style=" position:absolute;left:800;top:200" >
<tr> <td>帐号 </td> <td> <input type="text" name="us"> </td>
<tr> <td>密码 </td> <td> <input type="password" name="pw"> </td>
<tr> <td> <input type="button" onClick="checkq()" value="登陆" > </td> <td> <input type="reset" > </td>
</table>
</form>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>无标题文档 </title>
</head>
<script language="javascript">
function checkq()
{
var us=document.getElementById("us");
var pw=document.getElementById("pw");
if (us.value!='' && pw.value!='')//
{
document.hh.submit();
}
}
</script>
<body>
<form action="lgreg.asp" method="get" name="hh">
<table align="right" style=" position:absolute;left:800;top:200" >
<tr> <td>帐号 </td> <td> <input type="text" name="us"> </td>
<tr> <td>密码 </td> <td> <input type="password" name="pw"> </td>
<tr> <td> <input type="button" onClick="checkq()" value="登陆" > </td> <td> <input type="reset" > </td>
</table>
</form>
</body>
</html>