[Javascript] window close without user intervention

Tom Mallard mallard at mallard-design.com
Thu Sep 13 23:09:31 CDT 2001


When it finishes, update the page within the window to have an
opener.close() statement that executes from a body onload="closeWindow();"
function.

tom mallard
seattle
----- Original Message -----
From: <andyg at ihug.co.nz>
To: <javascript at LaTech.edu>
Sent: Thursday, September 13, 2001 8:26 PM
Subject: Re: [Javascript] window close without user intervention


> > I have an asp script that shows the user how far along a file upload is.
> > When it finishes, I would like the window to close automatically --
without
> > the user having to push a button or link saying "close this window".
> > Basically it would be something like this:
> >
> > tell browser:
> >
> > run this asp till finished
> > on finish run this javascript to close window.
>
> would this work? Alternatively \i guess you could response.redirect
> when finished so not to rely on javascript?
>
> <%
> ' your asp stuff here
> %>
> <script>
> window.close()
> </script>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>




More information about the Javascript mailing list