1. window.open을 통해 상위 페이지가 팝업되면 하위 페이지가 나타납니다. 하위 페이지의 값을 상위 페이지로 옮기려면 window.opener를 앞에 추가하면 됩니다. 문서의. 예: 1. 상위 페이지 코드: 제목 없는 문서 제목>head><br>함수 tanchu() <br>{<br> window.open("Untitled-5.html") <br>}<br>script><br><body><br> <form id="form1" name=" form1 " method="post" action=""><br> onclick="tanchu ()" /><br> label> ;/body><br></html><br>2. 하위 페이지 코드: <br> <br><html xmlns="http://www.w3.org/1999/xhtml"><br><head><br><meta http-equiv="Content-Type" content=" text/html; charset=utf-8" /></p><title>제목 없는 문서 제목><p>head><br><script 언어="javascript"><br>function aaa() <br>{<br> window.opener.document.getElementByIdx('textfield').value='123123123';<br>}<br>script><br><body><br> "form1" name=" form1" method="post" action=""><br> <label> <input type="submit" name="button" id="button" value="Submit"<BR> onclick="aaa ()" /><br> label><br> form><br></body><br></html><br><br>둘째, 하위 페이지는 iframe입니다. 페이지 상태는 프레임 <br><br><br> 하위 페이지가 상위 페이지에 값을 전달해야 하는 경우 문서 앞에 상위를 추가하면 됩니다. <strong>1. 상위 페이지 코드: </strong> <br><html xmlns="http://www.w3.org/1999/xhtml"><br><head><br><meta http-equiv="Content-Type" content=" text/html; charset=utf-8" /></p><title>제목 없는 문서 제목><p>head><br><body><br> <form id="form1" name= " form1" method="post" action=""><br> ~ <iframe id="myiframe" src="Untitled-3.html">iframe><br> 양식><br></body> <br></html><br>2. 서브 페이지 코드 <br> <br><html xmlns="http://www.w3.org/1999/xhtml"><br><head><br><meta http-equiv="Content-Type" content=" text/html; charset=utf-8" /><br><title>제목 없는 문서 제목><br>head></p><script 언어="javascript"><p>function aa() <br>{ <br> var a=parent.document.getElementByIdx('textfield').value;<br> 경고(a) <br>}<br>script><br><body><br> < ;form id="form1" name="form1" method="post" action=""><br> '제출'</p>