돌아가기 처리

This commit is contained in:
KNKIM 2021-08-10 18:14:28 +09:00
parent 218a426ee8
commit cd5f598fff

View File

@ -9,9 +9,12 @@
<br />
메시지 : ${message}
<button name="btnGoBack" id="" onclick="fn_goback()" value="돌아가기" title="돌아가기" />
&nbsp;<br />
&nbsp;<br />
<button name="btnGoBack" id="btnGoBack" onclick="fn_goback()" value="돌아가기" title="돌아가기">돌아가기</button>
<form name="gobackForm" id="gobackForm" />
<form name="gobackForm" id="gobackForm">
</form>
<script>
function fn_goback() {
@ -19,7 +22,8 @@ function fn_goback() {
history.back();
</c:if>
<c:if test="${not empty goBackUrl}">
$("#gobackForm").submit("${goBackUrl}");
$("#gobackForm").attr("action", "${goBackUrl}");
$("#gobackForm").submit();
</c:if>
}
</script>