본문 바로가기
Developer/Javascript & jQuery

[Javascript] 부모창에서 팝업으로 submit

by 순수한소년 2016. 11. 16.
728x90
반응형

@

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<button class="admin_button button_white" type="button" onClick="fn_payFirst();">결제하기</button>
 
/* 결제팝업창 */
function fn_payFirst() {
    var detailForm = document.detailForm;
    var url = "${pageContext.request.contextPath}/www/pay/payStep1.do";
    var win = window.open("" ,"popForm1""toolbar=no, width=420px, height=600px, directories=no, status=no, scrollorbars=no, resizable=no");
    win.focus();
 
    detailForm.action  = url;
    detailForm.method  = "post";
    detailForm.target  = "popForm1";
    detailForm.testVal = '${pageContext.request.contextPath}/www/pay/';
    detailForm.submit();
}

cs

@

728x90
반응형