뒤로가기 URL 처리 기능 추가

This commit is contained in:
KNKIM 2021-08-09 18:58:44 +09:00
parent 4a001454c0
commit 3855fe5ad8

View File

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