Back Button with Frames

Hi,
There are two frames defined in the  code below. The first one is named menu and the second is named main.:
<FRAMESET ROWS="25%,75%">
<FRAMESRC="menu.aspx" NAME="menu"  SCROLLING="AUTO" NORESIZE="NORESIZE" >
<FRAME SRC="homepage.html" NAME="main" SCROLLING="AUTO"
NORESIZE="NORESIZE"><NOFRAMES>
<BODY></BODY></NOFRAMES>
</FRAMESET>

 the back button is in the frame named menu and I want to go back one document in the frame named main.I tried this.
<FORM>
<INPUT TYPE="BUTTON" VALUE="Go Back" ONCLICK="parent.main.history.go(-1)">
</FORM>

But it is not working, it is not going to previous frame in Main.

Any Suggestions Please.

Thanks
KavyaVSAsked:
Who is Participating?
 
X-treemConnect With a Mentor Commented:
try parent.main.history.back()
or
try parent.main.window.history.back()
0
 
dimmergeekConnect With a Mentor Commented:
window.opener.parent.history.go(-1)
0
 
KavyaVSAuthor Commented:
Thanks.
0
 
dimmergeekCommented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.