Clsing Parent Framed Window
I have an main page that in comprised of 2 frames, I want to be able to close the main page from a button from the top frame page. Is it possible? My main page is:
<html>
<head>
<title></title>
</head>
<frameset rows="5%,*" border="0">
<frame name="maintop" src="maintop.shtml" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
<frame name="main" src="main.shtml" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
</frameset>
My Maintop page is:
<html>
<head>
<title></title>
</head>
<SCRIPT LANGUAGE="JavaScript">
function goHist(a)
{
history.go(a); // Go back one.
}
</script>
<center><FORM METHOD="post">
<INPUT TYPE="button" VALUE=" BACK " onClick="goHist(-1)">
<INPUT TYPE="button" VALUE="FORWARD" onClick="goHist(1)">
</form></center>
|