<input type="text" id="aa">
<input type="button" onclick="doCheck()" value="点我">
<script language="javascript">
function doCheck()
{
var obj = document.getElementById("aa");
if(obj.value=="123")
self.location.href="b.htm";
else
self.location.href="a.htm";
}
</script>
<input type="button" onclick="doCheck()" value="点我">
<script language="javascript">
function doCheck()
{
var obj = document.getElementById("aa");
if(obj.value=="123")
self.location.href="b.htm";
else
self.location.href="a.htm";
}
</script>
<html>
<%@ Language=JScript %>
<%
if (Request("modify")=='y'){
if (Request.Form("txt")=='123'){
Response.Redirect ("b.asp")
}else{
Response.Redirect ("c.asp")
}
}
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head><body><form name="frm1" method="POST" action="a.asp?modify=y">
<p><input type="text" name="txt" size="20"></p>
<p><input type="submit" value="提交" name="B1"><input type="reset" value="全部重写" name="B2"></p>
</form></body></html>
b.asp
<html><head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>b</title>
</head><body><p>b.htm</p></body></html>
c.asp
<html><head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>c</title>
</head><body><p>c.htm</p></body></html>
把三个页面放在一个文件夹内就行了,建一个虚拟目录,打开a.asp就行了
location.href="a.html";
location.href="c.html";