//부모창

//sUrl에 담고 싶은 변수를 담아 호출하고자 하는 popup.jsp에 변수로 넘겨준다.

var sUrl = "popup.jsp";

sUrl += "?A1=" + document.form1.A1.value;

sUrl += "&A2=" + document.form1.A2.value;

window.showModalDialog(sUrl, window, "dialogWidth:990px;dialogHeight:650px; center:yes; help:no; status:no; scroll:no; resizable:no");


//자식창

//String 변수에 가져온 A1, A2를 담는다.

String sA1 = request.getParameter("A1");

String sA2 = request.getParameter("A2");

//popup.jsp 내에 있는 form2.A1에 불러온 부모창으로 부터 불러온 A1변수를 담아준다.

document.form2.A1.value = <%=A1%>;


-끝-

+ Recent posts