Re: window closure

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Kevin Spencer (kevin_at_takempis.com)
Date: 03/10/04


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 ??
> >
> >
>
>


Relevant Pages

  • Re: Clicking on a WMV file in Explorer causes error... FOUND IT!!!
    ... Ramesh, Microsoft MVP ... Windows Media Player was able to open the file up directly. ... The program could not load a driver because the program user doesn't have sufficient privileges to access the driver or because the drive is missing or corrupt. ...
    (microsoft.public.windowsxp.general)
  • Re: window closure
    ... "Chris Jackson" wrote in message ... > Microsoft MVP - Windows Client ... > More people read the newsgroups than read my email. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Windows 7 email program?
    ... I've been using Windows Mail for a month now, ... Gary VanderMolen, Microsoft MVP (Mail) ... Mail on another Vista Home Premium, that I won't upgrade until the 1st ... newsgroups seldom need any 'default' protocol actions from the OS. ...
    (microsoft.public.windows.vista.mail)
  • Re: Cant search from Explorer address bar
    ... Ramesh - Microsoft MVP ... I am running Windows XP Professional. ... > Ramesh - Microsoft MVP ... > Windows XP Shell/User ...
    (microsoft.public.windows.inetexplorer.ie6.setup)
  • Re: MS-MVPs ---Emptying IE cache
    ... Ramesh - Microsoft MVP ... Windows XP Shell ... What You Should Know About the Sasser Worm and It Variants: ... started the new installation and about 10% ...
    (microsoft.public.windowsxp.newusers)