PDA

View Full Version : Hyperlink for downloading a file


Coral_Lover
10-15-2002, 09:54 AM
Hi, may i know how to provide a hyperlink which allows pple to download the file??
For example, i've something like this.

<A HREF = "test.txt">Download this file</A>

When the user clicks on the hyperlink, the normal download file dialog box will appear then ask the user to save the file to the local PC.

How can i do that? Can someone please tell me? Thanks!

jolietjake
10-15-2002, 11:00 AM
I'm not sure, but it's automatic for files that user's navigator can't handle. You only needs the link as you write before, and the file in the same folder where you have the html (or in different folder, but writing the way to the file, of course).

When the user clicks on the link, the navigator searchs for the file. If it finds it, then search for a plug-in on the user's system. If it finds it, then tries to show the file, if it cannot find it, shows the download dialog box.