Link to home
Start Free TrialLog in
Avatar of XeonXiao
XeonXiao

asked on

use javascript dowload files!

Does anybody know how to use javascript to download files
such as ,when I click a link , it wiil help me download 3
files?
thanks!
Avatar of DTACK
DTACK

yep... just point the document.location to the file you wanne download:

location="http://www.myserver.com/myfile.ext"

This will work for files that are not associated with your browser...

Regards,
Avatar of XeonXiao

ASKER

sorry, I think I made a silly description.First, I want to download more than one files.second,the downloaded files may be explained by browser,but I do not want them to be shown in the browser.

Any way, thank DTACK.
ASKER CERTIFIED SOLUTION
Avatar of webwoman
webwoman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- ACCEPT webwoman Grade A

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Jay Solomon
EE Cleanup Volunteer