Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] window close without user intervention


  • From: javascript@xxxxxxxxxx (javascript@xxxxxxxxxx)
  • Subject: [Javascript] window close without user intervention
  • Date: Fri, 14 Sep 2001 03:26:16 GMT

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