Jump to content

Archived

This topic is now archived and is closed to further replies.

ponsho

How to close window after force download

Recommended Posts

Im using some code to force download of files such as images, .txt files, etc, it works perfect but i dont like that when the user end downloding the file the window keeps open, how can i solve this problem. plase help

Share this post


Link to post
Share on other sites
PHP has no knowledge of what is displayed on the browser and can not close any window. Javascript can close windows.

Ken

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.