以下是一个网页程序,帮我看看错在哪里。

来源:百度知道 编辑:UC知道 时间:2024/06/27 06:07:55
以下是一个网页程序,帮我看看错在哪里。功能是,点击提交按钮,用户名如果是zhang或者wang,就跳到T3_form.htm网页
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>创建登陆表单</title>
<script language=vbscript>
sub dl()
if uname.value="zhang" or uname.value="wang" then
"跳到T3_FORM.htm网页
else
"跳到T3_FORM.htm网页
end if
exit sub
</script> </head>
<body>

<form>
<table align="center" bgcolor=silver width="300">
<tr bgcolor="#0038ff">
<th colspan="2" align=center >
<font color=white >登陆表单</font>
</th>
</tr>
<tr>
<td width="80" height="30" align=center>登陆名:</td>
<td><input type=text na

locatin="t3_form.htm";//跳到T3_FORM.htm网页"

<script language=vbscript>
sub dl()
if uname.value="zhang" or uname.value="wang" then
"跳到T3_FORM.htm网页
else
"跳到T3_FORM.htm网页
end if
exit sub
</script>
改为
<script language=javascript>
function dl()
{
if (document.getElementByName("uname").value="zhang"|document.getElementByName("uname").value="wang")
{
"跳到T3_FORM.htm网页

}
else
"跳到T3_FORM.htm网页
}