1.设一个button,然后用 οnclick="window.history.go(-1)"或者window.history.back()或javascript:history.back() 如下:
<input type="button" name="returngo" value="返回上一页" οnclick="window.history.go(-1)" >
2.jsp方式:
<%String ref = request.getHeader("REFERER");%>
<input type="button" name="returngo" value="/blog/返回上一页" οnclick="javascript:window.location='<%=ref%>'" >
<input type="button" name="returngo" value="返回上一页" οnclick="window.history.go(-1)" >
2.jsp方式:
<%String ref = request.getHeader("REFERER");%>
<input type="button" name="returngo" value="/blog/返回上一页" οnclick="javascript:window.location='<%=ref%>'" >