M
Martin
Hi, this is probably a very basic question but I'm not a javascript
expert!
Sure you get this asked often! Did some research but can't get it
working.
I'm thankful for any help!
Thanks!
Martin
On my index page I have a frame like this:
</HEAD>
....
<FRAME name="main" SRC="login.aspx" APPLICATION="no">
....
<body>
....
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
On the content page (login.aspx) I've a HTML button with a onclick
event for a javascript like this:
<script language="javascript">
<!--
// Function Close - Close Browser Window
function fnclose() {
parent.opener.close();
}
//-->
</script>
Question is, how do I close the window that actually contains the
frame, I mean close the whole browser from login.aspx? How do I
reference the parent window?
expert!
Sure you get this asked often! Did some research but can't get it
working.
I'm thankful for any help!
Thanks!
Martin
On my index page I have a frame like this:
</HEAD>
....
<FRAME name="main" SRC="login.aspx" APPLICATION="no">
....
<body>
....
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
On the content page (login.aspx) I've a HTML button with a onclick
event for a javascript like this:
<script language="javascript">
<!--
// Function Close - Close Browser Window
function fnclose() {
parent.opener.close();
}
//-->
</script>
Question is, how do I close the window that actually contains the
frame, I mean close the whole browser from login.aspx? How do I
reference the parent window?