页面转向!
请诸位看官不吝列举各位已知的页面转向方法。使用语言不限。列举越多分越多,多多益善! 问题点数:100、回复次数:11Top
1 楼beyond_xiruo(CorruptionException)回复于 2003-01-08 13:38:51 得分 80
javascript:
top.location.href=url;
window.location.href=url;
self.location.href=url;
window.location.replace(url);
jsp:
response.sendRedirect(url);
<jsp:forward page="url" />
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
response.setHeader("Location",url);
servlet:
request.getRequestDispatcher(url).forward(request,response);
asp:
response.redirect(url);Top
2 楼beyond_xiruo(CorruptionException)回复于 2003-01-08 13:44:37 得分 0
C#
Page.Navigate(url);
Response.Redirect(url);Top
3 楼beyond_xiruo(CorruptionException)回复于 2003-01-08 13:48:11 得分 0
html:
<a href="url">click</a>
<meta http-equiv="refresh" content="2;url=http://www.csdn.net">Top
4 楼AaddB(a加b)回复于 2003-01-08 14:03:10 得分 10
php:
Header("Location: http://www.csdn.net");
cgi(perl):
$url="http://www.csdn.net";
print "Location: $url\n\n";Top
5 楼beyond_xiruo(CorruptionException)回复于 2003-01-08 14:05:04 得分 0
什么叫“该用户没有登陆”???
csdn搞什么鬼???Top
6 楼beyond_xiruo(CorruptionException)回复于 2003-01-08 14:16:09 得分 0
C#:
Server.Transfer(url,boolean);Top
7 楼cxb1004(天地笑)回复于 2003-01-08 17:13:44 得分 0
好全阿 呵呵 赶紧复制了一份,众位厉害Top
8 楼zl_215(我爱兔兔)回复于 2003-01-08 17:46:41 得分 0
收藏Top
9 楼hedane(有球必应)回复于 2003-01-09 09:07:56 得分 0
我来补充一种假的。
JScript:
上一页:history.go( -1 );
下一页:history.go( 1 );
Top
10 楼jtzwm(只爱一点点)回复于 2003-01-09 09:36:25 得分 0
收藏Top
11 楼smartboy(天涯一痴人)回复于 2003-01-09 09:41:48 得分 10
response.sendRedirect(response.encodeRedirectURL("index.jsp"));Top




