读书人

frameset中怎么直接跳转至首页(中转页

发布时间: 2012-09-23 10:28:11 作者: rapoo

frameset中如何直接跳转至首页(中转页)--window.parent.parent.location.replace

?

之间跳转页(中转页),turnToLogin.jsp

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>  <head>    <base href="<%=basePath%>">        <title>My JSP 'trunToLogin.jsp' starting page</title>    <meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="expires" content="0">    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"><meta http-equiv="description" content="This is my page"><!--<link rel="stylesheet" type="text/css" href="styles.css">-->  </head>    <body>  </body><script type="text/javascript">window.parent.parent.location.replace("<%=path%>");</script></html>

?

?

?

读书人网 >Web前端

热点推荐