基因检查遗传病多少钱:asp 如何做到打不开页面就跳转到其它页面?

来源:百度文库 编辑:神马品牌网 时间:2024/05/05 18:45:23
如何打不开页面,就跳转到其它页面?
如果打不开才跳转,并不是直接跳转!!

好像不太容易实现...打不开页面..也就没办法执行代码..所以也就没办法跳转..当然这是指在服务器端...

如果在客户端..应该可以实现...让他们把系统改进一下..

=====javascript中弹出选择框跳转到其他页面=====
<script language="javascript">
<!--
function logout(){
if (confirm("你确定要注销身份吗?\n是-选择确定,否-选择取消")){
window.location.href="logout.asp?act=logout"
}
}
-->
</script>

=====javascript中弹出提示框跳转到其他页面=====
<script language="javascript">
<!--
function logout(){
alert("你确定要注销身份吗?");
window.location.href="logout.asp?act=logout"
}
-->
</script>

=====ASP中直接跳转到其他页面===========

<%
response.redirect "logont.asp"
%>

=====Html中确认后弹出新页面===========
function Del(id)
{
if (confirm("你确定要删除吗?"))
{
window.open("otherfile.asp?ID="+id+"&act=del","top","width=640,height=400")
}
}

=====Html中确认后跳转到其他页面=========
function Del(URL)
{
if (confirm("你确定要删除吗?"))
{
//URL="otherfile.htm"
window.location.href=URL
}
}

response.redirect "页面"

修改服务器iis设置,错误代码里找404,修改路径到你指定的页面

使用 response.redirect "http://www.126.com"