Hello, I need to open up a new window when someone clicks a link to download a file out of the /dls directory. So basically it will do this: User requests file (site.com/dls/1.zip) -> My new window opens -> User is prompted for download Any suggestions? Thanks!
I suspect a little JavaScript is going to be the solution to this. <a href = "/dls/1.zip" target = "download1" onClick = "window.open('/dls/1.zip','download1','width=600,height=600,screenx=200,screeny=100,scrollbars=1,resizable=1')">Download my files</a> This method will still work if the user has javascript turned off and will still work with browsers that don't support concepts like "Windows".
I do not specify the link in these downloads, they are direct links. This needs to be done somehow via .htaccess Thanks though!