|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by mkobey in Hypertext Markup Language (HTML), CoffeeCup HTMLEditor, HTTP
I would like to point a user to a simple url such as "
www.website.com/webpage" and when the user goes there, it will automatically download a PDF.
However, with most browsers, it will open up the PDF within Firefox or IExploerer. How to I tell the browser to prompt for a download file dialog box instead of opening up inside the web browser. I have attached the code I am using.
Thanks, Mark
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'>
<!-- the next meta tag does the redirect -->
<meta http-equiv="refresh" content="12;url=http://www.website.com/webpage/pdffile.pdf">
<title>Page Title</title>
</head>
<body>
<p>Your file should download automatically. If it does not, please click on this link to access the prequalification form.</p>
<p><a href="http://www.website.com/webpage.pdffile.pdf> link</a></p>
</body>
</html>
|
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625