<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<script language="javascript">
var times=6;
clock();
function clock()
{
window.setTimeout('clock()',1000);
times=times-1;
time.innerHTML =times;
}
</script>
<head>
<meta http-equiv= "Refresh" content= "5;url=http://localhost:8088/OA/login.jsp ">
<title>Insert title here</title>
<style type="text/css">
.STYLE1 {color: #FF0000}
</style>
</head>
<html>
<body>
<br/>
<br/>
<br/>
<center>
<%
String message = (String) request.getAttribute("message");
%>
<%=message%></br>
<table>
<tr>
<td class= "FontBlack STYLE1"> 该页面将在 </td>
<td class= "FontBlack"> <div class="STYLE1" id= "time"> 5 </div> </td>
<td class= "FontBlack STYLE1"> 秒后自动跳转 </td>
</tr>
</table>
<a href="/OA/login.jsp">如果您的浏览器不能自动跳转请点此继续操作</a>
</center>
</body>
</html>
js实现几秒钟后跳转到指定页面
最新推荐文章于 2023-02-27 17:24:43 发布