abc.htm是父窗口有两个子窗口a.htm和b.htm能过a页面中输入东东通过父窗口传递给b页面
并使其a页面刷新如果有多个iframe子窗口原理相同
abc.htm
-----------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>temp</title>
</head>
<body>ahtm<br/>
<iframe name="ahtm" src="a.htm" width="400" height="50"></iframe><p></p>
bhtm<br/>
<iframe name="bhtm" src="b.htm" width="400" height="50"></iframe>
</body>
</html>a.htm
----------------------------
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>temp</title>
</head>
<body>
<input size="20" type="text" name="ainput" id="ainput">
<input type="button" onclick="parent.bhtm.document.all.binput.value=ainput.value;location.reload()" value="按钮">
</body>
</html>
b.htm
------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>temp</title>
</head>
<body>
<input name="binput" id="binput" type="text" size="40">
</body>
</html>