devxlogo

Closing a Popup Window Automatically

Closing a Popup Window Automatically

The following code will close a popup window after the user selects to download the file, or if he/she cancels the download.

Between the

tags of the document is popped up, add the code below:

In the

tag add this:

Somewhere in the body of the document add:

And finally wherever you need them, the links:

Download ? Yes No

Note: This works for both Internet Explorer and FireFox.

devx-admin

Share the Post: