HTML中:
方法1:
- <meta:http-equiv="refresh" content="intN;URL">
方法2:
- <form name=abc method=get action="url">
- ......
- form>
JavaScript中:
方法1:
window.location.href = "URL";
方法2:
window.navigate("URL");
方法3:
window.history.go( intN ); window.history.back( ); window.history.forward( );
方法4:
window.location.replace( "URL" ); window.location.reloade(true);
JSP中:
方法1:
response.setHeader("refresh","intN;URL") ;
方法2:
response.redirect("URL");
方法3:
response.sendRedirect("URL");
方法4:
- <jsp:forward page="url">
<jsp:forward page="....."></jsp:forward>
Servlet中:
方法1:
actionMapping.forware("forward-name");
本文汇总了多种网页跳转的方法,包括HTML中的元标签刷新、表单提交,以及JavaScript的各种跳转方式。还介绍了JSP和Servlet中的页面跳转技术。
12万+

被折叠的 条评论
为什么被折叠?



