下記サンプルは親フレームの入力内容を子フレームへ移動し、サブミットする
ものです。
親フレームソースのスクリプト部分
function nextFm(){
top.frames[0].document.in_area.in_bumon_name.value = document.in_area.ward.value
top.frames[0].document.in_area.submit();
}
</script>
<body>
<form name="in_area">
<input class="type11" type="text" name="ward" value="">
<input class="button010" type="button" onclick="nextFm()" value="検索">
<iframe src="FLM_bumon_kensaku.php" name="next_fm" width="280" height="180" scrolling="auto" marginwidth="0" marginheight="0" frameborder="0"></iframe>
</body>
子フレームソース
<html>
<head>
</head>
<body>
<form name="in_area" action="FLM_bumon_kensaku.php" method="post">
<input type="hidden" name="in_bumon_name" value=""><br>
<input type="hidden" name="fm_no" value=""><br>
<input type="hidden" name="el_no" value=""><br>
</form>
</body>
</html>
最終更新:2008年01月08日 12:25