Click to See Complete Forum and Search --> : ppt file


mundkesonali
12-05-2002, 08:00 AM
Hi,

i want to provide a button on my site which will allow a visitor to download PPT file from server.
If anybody clicks on button it should show a dialog box to download like we get for exe files.
it should not directly start the ppt presentation.



thanks in advance.

AdamGundry
12-05-2002, 02:54 PM
You should be able to instruct the user's browser to redirect to the location of the PPT file, which will download it. It is possible it might start playing, depending on the browser and version of PowerPoint available (I'm not sure). Try this:

<input type="button" value="Download Presentation" onclick="location.href = 'presentation.ppt';">

You might need to put the entire address where 'presentation.ppt' appears, including the HTTP protocol.

Good luck

Adam