2
Contributors
3
Replies
5
Views
7 Years
Discussion Span
Last Post by fxm
0

download a pdf link

This will open a .pdf in the same window (unless your browser or viewer is configured not to do so).

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta name="generator" content=
    "HTML Tidy for Windows (vers 25 March 2009), see www.w3.org">
    <title></title>
  </head>
  <body>
<button onClick="window.location='http://---whatever---.pdf'">Open .pdf!</button>
  </body>
</html>
0

i do not want to open it in the same window( or another window), i want that if user clicks the button it gets an option to save the pdf file.

0

That function is available only in IE, and even there it is commonly disabled for security reasons. Just make a regular link and let those who wish to take the risk use right-click to save the file.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.