<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <html> <head> <%@ include file="header.jspf" %> </head> <body> <div class="container"> <%@ include file="head.jsp" %> <div class="row" style="margin-top: 70px "> <div class="jumbotron"> <h2>${msg}</h2> <br> <center ><p id="cnt" style="color: red">5秒后返回主页...</p> <p><a class="btn btn-primary" onclick="history.go(-1);">点我立即返回</a></p></center> </div> </div> </div> <script type="text/javascript"> var cnt = 5; function count(){ cnt--; if(cnt>0){ $("#cnt").html(cnt+"秒后返回"); }else{ window.history.go(-1); } }; $(function(){ //setTimeout("'", 3000); setInterval('count()', 1000); }); </script> <%@ include file="buttom.jsp" %> </body> </html>