this is what u are looking for!!!
Main.htm
<HTML>
<FRAMESET COLS="20%,40%,40%">
<FRAME NAME="MAIN" SRC="frame1.htm">
<FRAME SRC="frame2.htm">
<FRAME SRC="frame3.htm">
</FRAMESET>
</HTML>
Frame1.htm
<HTML>
<HEAD>
<SCRIPT Language="VBScript">
Sub RefreshBtn_onClick
If Text1.Value <> "" Then
set win = top.frames(Text1.Value - 1)
win.History.go 0
End If
End Sub
</SCRIPT>
</HEAD>
<BODY>
Enter the number of the frame to refresh.<BR/>
Enter 2 for frame 2, 3 for frame 3.<BR/><BR/>
<INPUT TYPE="Text" ID="Text1"><BR/>
<BUTTON ID="RefreshBtn">Refresh</BUTTON>
</BODY>
</HTML>
Frame2.htm
<HTML>
<SCRIPT LANGUAGE="VBScript">
Sub Window_onLoad
MsgBox "Frame 2 is loading"
End Sub
Sub Window_onUnload
MsgBox "Frame 2 is unloading"
End Sub
</SCRIPT>
<BODY>
<H1>This is Frame 2</H1>
</BODY>
</HTML>
Frame3.htm
<HTML>
<SCRIPT LANGUAGE="VBScript">
Sub Window_onLoad
MsgBox "Frame 3 is loading"
End Sub
Sub Window_onUnload
MsgBox "Frame 3 is unloading"
End Sub
</SCRIPT>
<BODY>
<H1>This is Frame 3</H1>
</BODY>
</HTML>