[Javascript] window close without user intervention

andyg at ihug.co.nz andyg at ihug.co.nz
Thu Sep 13 22:26:16 CDT 2001


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




More information about the Javascript mailing list