<input type="button" value="后退" onClick="history.go(-1)">
<input type="button" value="前进" onClick="history.go(1);return true">
<input type="button" value="返回上一步" onClick="history.back(-1)">
1.
1 <%@ page language="java" contentType="text/html; charset=UTF-8" 2 pageEncoding="UTF-8"%> 3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 4 <html> 5 <head> 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7 <title>Insert title here</title> 8 </head> 9 <body> 10 AAAAAAAA 11 <input type="button" value="前进" onClick="history.go(1);return true"> 12 </body> 13 </html>
2.
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <input type="button" value="后退" onClick="history.go(-1)">
<input type="button" value="返回上一步" onClick="history.back(-1)">
</body> </html>
浙公网安备 33010602011771号