Depends on the file it links to. Archives (zip, sit, etc) will ask to download (or download automatically). Movies or images will often open in the browser, but can then easily be saved to your computer. You may consider not having the javascript on the download page, since it will presumably not be needed (instead only harm functionality).