对窗口对象进行操作a.htm
<FRAMESET ROWS="50,25,25" >
<FRAME SRC="1.htm" NAME="frame1">
<FRAME SRC="2.htm" NAME="frame2">
<FRAME SRC="3.htm" NAME="frame3">
</FRAMESET>
3.htm
<SCRIPT LANGUAGE="JavaScript">
<!--
function refreshFrame()
{
alert(parent.frame1.location.href + "\n" + parent.frame2.location.href );
parent.frame1.location.reload(); // parent.frame1  窗口对象
parent.frame2.location.reload(); // parent.frame2  窗口对象
}//-->
</SCRIPT>
<INPUT TYPE="button" NAME="text" value="test" onclick="refreshFrame()">
:_)