onclick="submitform()"
...
...
...
<script>
function submitform()
{
form1.submit();
form1.username.value="";
form1.password.value="";
}
</script>
[此贴子已经被作者于2006-2-13 11:22:04编辑过]
onclick="submitform()"
...
...
...
<script>
function submitform()
{
form1.submit();
form1.username.value="";
form1.password.value="";
}
</script>
[此贴子已经被作者于2006-2-13 11:22:04编辑过]
原代码是这样 应该加在哪里呢?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Please Log In Below</title>
</style>
<base target="_blank">
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<font color=red size=3>
<FORM action="http://zhw/login1.asp" method="post" >
<TABLE cellSpacing=0 cellPadding=0 width=171
border=0 id="table2" height="90">
<TBODY>
<TR>
<TD width=171 valign="middle">
<font size=3>
<P align=center>
</font>
<font face="Verdana">
<font size=3>
<span style="font-size: 9pt">用户ID:</span></font><font color=red size=3><INPUT name=UserID value='' size="13"></font></font></P>
</TD></TR>
<TR>
<TD width=171 valign="middle">
<font size=3>
<P align=center><span style="font-size: 9pt">密 码</span></font><FONT face=Verdana><font size=3><span style="font-size: 9pt">:</span></font><font color=red size=3><INPUT name=PW type=password size="13"></font></FONT></P>
</TD></TR>
<TR>
<TD width=171>
<P align=center><FONT face=Verdana>
<Input class=Input1 type=image id='Login' src='images/userlogin.gif' border=0 name='Login'></FONT></P>
</TD></TR></TBODY></TABLE>
</FORM>
</font>
</body>
</html>
<FORM id="form1" action="http://zhw/login1.asp" method="post" >
<Input class=Input1 type=image id='Login' src='images/userlogin.gif' border=0 name='Login' onclick="submitform()">
[QUOTE]<script>
function submitform()
{
form1.submit();
form1.username.value="";
form1.password.value="";
}
</script>[/QUOTE]这个随便放哪都行……,建议楼主还是都看点HTML基础知识
[此贴子已经被作者于2006-2-13 12:29:42编辑过]