为什么location.href="edit.asp"没用
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>刊物</title>
<script language="VBScript">
<!--
sub button_click()
if document.forms(0).magazine.value = "" then
msgbox "刊物的名称不能为空"
document.forms(0).magazine.select
else
location.href = "edit.asp"
end if
end sub
-->
</script>
</head>
<body>
<table width="75%" border="1" align="center">
<tr>
<td>
<form name="form1" method="post" onSubmit="button_click">
<div align="center">搜索刊物
<input type="text" name="magazine">
<input type="submit" name="search" value="搜索">
</div>
</form></td>
</tr>
<tr>
<td><form name="form2" method="post" action="edit.asp">
<div align="center"><input type="submit" name="edit" value="维护"></div>
</form></td>
</tr>
<tr>
<td><form name="form2" method="post" action="add.asp">
<div align="center"><input type="submit" name="add" value="增加"></div>
</form></td>
</tr>
</table>
</body>
</html>
*******************************************************
但我点击搜索的时候,他并没edit.asp页面去,还是停留原来的页面,不知道为什么,请问这是什么问题,应该怎么解决,
谢谢!!