use javascript dowload files!

XeonXiao
XeonXiao used Ask the Experts™
on
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!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
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,

Author

Commented:
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.
Commented:
Zip them up, make a link to the zip file.
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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial