포스트 방식으로 팝업을 띄워야 하는 경우가 종종 있다.
방법은 다음과 같다.
function popupNotice(idx)
{
var f = document.frm;
var pop = window.open;
pop("", "notice","width=550,height=430,scrollbars=yes");
f.action = "pop_notice.jsp";
f.target = "notice";
f.idx.value = idx;
f.submit();
}
<form name="frm" method="post">
<input type="hidden" name="idx">
</form>
정말 쉽다..ㅎㅎㅎ