在页面的公用头返回上一个页面如何弄啊求大神相助,今天老总要看效果
在页面的公用头返回上一个页面怎么弄啊?急求大神相助,今天老总要看效果啊
JSP页面代码块:
<div class="main">
<%@ include file="/app/hisHeader.jsp"%>
<!-- 这个include的页面有个返回按钮,点击后怎么返回我从内容页面链接的跳转到页面? -->
<div class="center">
<div style="width:100%;position: relative;margin: 200px auto 0 ;">
<div style="font-size:50px;">
您的充值金额为500元
</div>
<div class="putin">
请输入支付密码:<input type="password" style="width:200px;height: 50px;font-size:50px;background-color:transparent;" />
<div id="submit">确定</div>
</div>
</div>
</div>
</div>
hisHeader.js页面:
<div class="header" style="height:100px;background-color: black;background: 'url(images/u2.png) no-repeat center center;';">
<div class="pageTitle" id="pageTitle" style="line-height: 60px;"></div>
<span id="returnBtn" class="headerBtn" onclick="fnReturnRrePage()" style="float: left;height: 100px;line-height: 100px;background: url(images/u6.png) no-repeat center;"><span class="icon icon_back"></span>返回</span>
<div class="headerBtn" id="icon_cardOut" onclick="fnBackCard();"><span class="icon icon_cardOut"></span>退卡</div>
<div class="headerBtn" onclick="fnToMain()" style="float: left;left: 173px;background: url(images/btn_sy.png) no-repeat center;width:140px;color:white;text-align: center;height: 100px;line-height: 100px;"></div>
<span class="welcome" id="welcome" style="height: 100px;line-height: 100px;"></span>
<input type="hidden" id="preUrl" name="preUrl" value="${preUrl}"/>
<input type="hidden" id="queryUrl" name="queryUrl" value="${queryUrl}"/>
<input type="hidden" id="menuName" name="menuName" value="${menuName}"/>
<input type="hidden" id="menuId" name="menuId" value="${menuId}"/>
</div>:
------解决思路----------------------
history.go(-1)
location=document.referrer
JSP页面代码块:
<div class="main">
<%@ include file="/app/hisHeader.jsp"%>
<!-- 这个include的页面有个返回按钮,点击后怎么返回我从内容页面链接的跳转到页面? -->
<div class="center">
<div style="width:100%;position: relative;margin: 200px auto 0 ;">
<div style="font-size:50px;">
您的充值金额为500元
</div>
<div class="putin">
请输入支付密码:<input type="password" style="width:200px;height: 50px;font-size:50px;background-color:transparent;" />
<div id="submit">确定</div>
</div>
</div>
</div>
</div>
hisHeader.js页面:
<div class="header" style="height:100px;background-color: black;background: 'url(images/u2.png) no-repeat center center;';">
<div class="pageTitle" id="pageTitle" style="line-height: 60px;"></div>
<span id="returnBtn" class="headerBtn" onclick="fnReturnRrePage()" style="float: left;height: 100px;line-height: 100px;background: url(images/u6.png) no-repeat center;"><span class="icon icon_back"></span>返回</span>
<div class="headerBtn" id="icon_cardOut" onclick="fnBackCard();"><span class="icon icon_cardOut"></span>退卡</div>
<div class="headerBtn" onclick="fnToMain()" style="float: left;left: 173px;background: url(images/btn_sy.png) no-repeat center;width:140px;color:white;text-align: center;height: 100px;line-height: 100px;"></div>
<span class="welcome" id="welcome" style="height: 100px;line-height: 100px;"></span>
<input type="hidden" id="preUrl" name="preUrl" value="${preUrl}"/>
<input type="hidden" id="queryUrl" name="queryUrl" value="${queryUrl}"/>
<input type="hidden" id="menuName" name="menuName" value="${menuName}"/>
<input type="hidden" id="menuId" name="menuId" value="${menuId}"/>
</div>:
------解决思路----------------------
history.go(-1)
location=document.referrer