lnternet
asked on
Force download when clicked (Save Target As...)
I would like to know of a script that forces a .mp3 or .wma, .rm file to download no matter what the users has set as a default for this file. Same as if the user was to select the right click option:
"Save Target As..."
Example,
http://www.hydrozeen.com/Hydrozeen-Pile%20of%20Bones.mp3
Normally when you click on the basic link your computer settings will either stream this into your system or ask to download it.
Now you can always right click and then select:
Save Target As...
and this is what I would like the default for the link to be, so how do I change a basic .mp3 link into a force download link?
Thanks for the answer,
Stephen
"Save Target As..."
Example,
http://www.hydrozeen.com/Hydrozeen-Pile%20of%20Bones.mp3
Normally when you click on the basic link your computer settings will either stream this into your system or ask to download it.
Now you can always right click and then select:
Save Target As...
and this is what I would like the default for the link to be, so how do I change a basic .mp3 link into a force download link?
Thanks for the answer,
Stephen
when the user clicks the link you could submit a download form to a new window then use that script on that page
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I think the points should be split between myself and Ayesha_K since both are viable options
http://www.psacake.com/web/if.asp