Re: window closure
From: Kevin Spencer (kevin_at_takempis.com)
Date: 03/10/04
- Next message: Mo : "Re: DataGrid, DataList, or something else?"
- Previous message: Peter Blum: "Re: server side validation in form using panel controls"
- In reply to: Chris Jackson: "Re: window closure"
- Next in thread: George Ter-Saakov: "Re: window closure"
- Reply: George Ter-Saakov: "Re: window closure"
- Reply: George Ter-Saakov: "Re: window closure"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 10 Mar 2004 13:06:53 -0500
Or, if you want the page to stay open for, say 10 minutes, use:
<script type="text/javascript"><!--
function CloseWindow()
{
window.opener = self; // If the window has no opener, this prevents
confirmation dialogue
window.close();
}
// the interval is in millseconds. I broke it down in the following
line:
window.setTimeOut("CloseWindow()", 10 * 60 * 1000);
// --></script>
-- HTH, Kevin Spencer .Net Developer Microsoft MVP Big things are made up of lots of little things. "Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message news:#Rx9l3rBEHA.140@TK2MSFTNGP09.phx.gbl... > Why can't you? Just use window.close(); > > -- > Chris Jackson > Software Engineer > Microsoft MVP - Windows Client > Windows XP Associate Expert > -- > More people read the newsgroups than read my email. > Reply to the newsgroup for a faster response. > (Control-G using Outlook Express) > -- > > "TJS" <nospam@here.com> wrote in message > news:ONV1I4lBEHA.2796@TK2MSFTNGP09.phx.gbl... > > Since I can't automatically close a window after execution, what is a > > viable > > alternative to prevent browser windows from staying open indefinitely ?? > > > > > >
- Next message: Mo : "Re: DataGrid, DataList, or something else?"
- Previous message: Peter Blum: "Re: server side validation in form using panel controls"
- In reply to: Chris Jackson: "Re: window closure"
- Next in thread: George Ter-Saakov: "Re: window closure"
- Reply: George Ter-Saakov: "Re: window closure"
- Reply: George Ter-Saakov: "Re: window closure"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|