English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

..i set up a file download and want to close the browser or tab when download completes....

2006-06-16 16:41:44 · 2 answers · asked by mystiq68 1 in Computers & Internet Programming & Design

2 answers


If you want to do it automatically you must use Java script to do it.

2006-06-16 16:46:51 · answer #1 · answered by IT-guru 5 · 0 0

There is no such thing in html. HTML is just markup language.

Javascript can be used to close a browser instance using the window.close() method, however, there is no event associated with the end of a file download that you could hook it onto. The window could of course have a button that executes the window.close in the onClick event, but I'm guessing you were hoping for something tied to the download.

2006-06-17 00:12:43 · answer #2 · answered by Gizmo L 4 · 0 0

fedest.com, questions and answers