개발/JavaScript

iframe에다가 submit()하기

좋은느낌/원철 2008. 8. 23. 11:52

출처 : OKJSP
원문 : http://www.okjsp.pe.kr/seq/103876

<!--
부모 페이지
-->

<script>
function clickMove2(){
    window.open('',"sm",'width=1024,height=768,left=0,top=0,toolbar=no,location=no,menubar=no,status=no,directories=no,resizable=yes,scrollbars=yes');

 document.frames["tfrm"].listForm.target = "sm";

 document.frames["tfrm"].listForm.action = "detail_view.jsp";
    document.frames["tfrm"].listForm.submit();
}
</script>


<iframe src='%s' name='tfrm' width='100%' height='400' frameborder='0'></iframe>

<a href="javascript:clickMove2();">링크</a>


<!--
iFrame
-->

<form name='listForm' method='post'>
<table>
</table>
</form>

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
난 팝업으로 띄우지 않고 그냥 삽입할 예정이다..
잘 되어야 할 텐데..