当前位置: 移动技术网 > IT编程>开发语言>Asp > asp重定向页面的方法总结

asp重定向页面的方法总结

2017年12月12日  | 移动技术网IT编程  | 我要评论
返回上一页,一般用在判断信息提交是否完全之后<%
'******************************
'函数:goback()
'参数:无
'作者:阿里西西
'日期:2007/7/13
'描述:返回上一页,一般用在判断信息提交是否完全之后
'示例:<%call goback()%>
'******************************
sub goback()
response.write ("<script>history.go(-1)</script>")
end sub 
%>
重定向到另外的链接
<%
'******************************
'函数:go(url)
'参数:url,相对或绝对路径及网址
'作者:阿里西西
'日期:2007/7/13
'描述:重定向到另外的链接
'示例:<%call go(http://www.alixixi.com)%>
'******************************
sub go(url)
response.write ("<script>location.href('" & url & "')</script>")
end sub 
%>
指定秒数重定向另外的连接
<%
'******************************
'函数:gopage(url,s)
'参数:url,相对或绝对路径及网址;s,以秒为单位的时间后跳转
'作者:阿里西西
'日期:2007/7/13
'描述:指定秒数重定向另外的连接
'示例:<%call gopage("http://www.alixixi.com",3)%>
'******************************
sub gopage(url,s)
s=s*1000
response.write "<script language=javascript>"
response.write "window.settimeout("&chr(34)&"window.navigate('"&url&"')"&chr(34)&","&s&")"
response.write "</script>"
end sub 
%>

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网