opener
-
[jQuery] 윈도우 팝업창 부모창 제어JavaScript | jQuery/Popup 2022. 5. 17. 15:02
1. 자식창에서 부모창으로부터 value 가져오기 var parentValue = opener.document.getElementById("parentId").value; 2. 자식창에서 부모창의 함수 실행 opener.parent.parentFunction(); 3. 자식창에서 부모창 새로고침 window.opener.location.reload(); 4. 현재창(자식창) 새로고침 window.location.reload(); 5. 현재창(자식창) 닫기 window.close();