JS : window.opener

부모창 제어

hidden채워주고 submit() example Code

var parentWind = window.opener;
parentWindow.document.getElementById("parent_hidden_field_something").value = "somethingSpecial";
parentWindow.document.getElementById("parent_form_something").action = "url";
parentWindow.document.getElementById("parent_form_something").submit();

Leave a Reply

Your email address will not be published.