[제나플러스] 폼값 두곳으로 전송하기
페이지 정보
본문
출처 - http://www.sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=40430#c_40433
============================
<form name="f" method="post">
<input name="name" value="" type="hidden">
<input value="전송" onclick="send()" type="button">
</form>
<script language="javascript">
function send()
{
var f = document.f;
f.action = "page1.php";
f.target = "frame1";
f.submit();
f.action = "page2.php";
f.target = "frame2";
f.submit();
}
</script>
<iframe id="frame1" name="frame1"></iframe>
<iframe id="frame2" name="frame2"></iframe>
============================
<form name="f" method="post">
<input name="name" value="" type="hidden">
<input value="전송" onclick="send()" type="button">
</form>
<script language="javascript">
function send()
{
var f = document.f;
f.action = "page1.php";
f.target = "frame1";
f.submit();
f.action = "page2.php";
f.target = "frame2";
f.submit();
}
</script>
<iframe id="frame1" name="frame1"></iframe>
<iframe id="frame2" name="frame2"></iframe>
추천0
관련링크
댓글목록
등록된 댓글이 없습니다.