Jump to content


Photo

How to close window after force download


  • Please log in to reply
2 replies to this topic

#1 ponsho

ponsho
  • Members
  • PipPip
  • Member
  • 24 posts

Posted 17 March 2006 - 07:38 PM

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

#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 17 March 2006 - 07:41 PM

PHP has no knowledge of what is displayed on the browser and can not close any window. Javascript can close windows.

Ken

#3 ponsho

ponsho
  • Members
  • PipPip
  • Member
  • 24 posts

Posted 17 March 2006 - 09:42 PM

Do you have any idea how i can make this work??




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users