JSP---使用HTML完成定时跳转功能

 1 <%@ page contentType="text/html" pageEncoding="GBK"%>
 2 
 3 <html>
 4 <head><title>page属性</title></head>
 5   <body>
 6 
 7   <%
 8   response.setHeader("refresh","5;URL=request02.html");//设置两秒一刷新
 9   %>
10 <h1>10秒后没有跳转请点这颗粒<a href="request02.html">!</a></h1>
11    
12    </body>
13    </html>

注册账号时常用此功能

原文地址:https://www.cnblogs.com/anuo007/p/3583361.html