jsp中返回按钮跳转上一个页面
<script>
function backAndFresh(){
var url =document.referrer;
window.location=url;
}
</script>
<input class="btn btn-default" onclick="backAndFresh()" type="button" value="返回" />
<script>
function backAndFresh(){
var url =document.referrer;
window.location=url;
}
</script>
<input class="btn btn-default" onclick="backAndFresh()" type="button" value="返回" />