title: How to force a hyperlink to show the open/save dialog box instead of opening it in browser?
body: <p>In my code I am generating several hyperlinks dynamically which are direct links to PDF/Jpg/bitmap/Png/Docx/Xlsx/Pptx files hosted in the server.</p>
  
  <p>the code looks somewhat like this.</p>
  
  <pre><code>private void PopulateLinks(string linkText, string URL)
  {
     DIV_download.innerHtml += "&lt;a href='" + URL + "'&gt;" + linkText + "&lt;/a&gt; &lt;br/&gt;"; 
  }
  </code></pre>
  
  <p>The problem is whatever files browser can handle, it is opening in the same tab. is there any way to force the download dialog box for PDF and JPEG/Bitmap/Png files? </p>
  
  <p>Since I need this in client side, I can not use the content-dispostion way, can it be done using javascript or any other markup? My clients only use internet explorer so it will be enough for me if it works only in IE. </p>