PDA

View Full Version : download file using HTML



anardodesign
January 15th, 2007, 08:41 PM
Dudes how can I set a file for download using HTML, I am trying to click on a link, and download a PDF, and not opened it in the browser when I click on it.

Thanks everyone :)

brndn
January 15th, 2007, 09:12 PM
google that one..
should be real straight forward

Abus
January 16th, 2007, 07:32 AM
<a href="Files/Sample.pdf" title="A PDF about something">Click Here!</a>

simplistik
January 16th, 2007, 02:29 PM
well depends on the system on windows pdfs will use the integrated pdf viewer if you have adobe pdf viewer installed. safest route is to slap them in a compressed file.

lissymissy
January 19th, 2007, 01:34 AM
Here's a silly question...

Where do I put the HTML tag?

simplistik
January 19th, 2007, 10:45 AM
Here's a silly question...

Where do I put the HTML tag?


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Untitled Document</title>
</head>

<body>
</body>
</html>


standard html structure ^^
http://www.w3schools.com/