title: forcing a pdf to download when clicked on button
body: <p>I hava a backbonejs view containing a button saying "download pdf". I also have the url available where the pdf can be found. I want that when user clicks on the button, the pdf file gets downloaded. Is it possible?</p>
  
  <p>EDIT: My view code in backbone.js</p>
  
  <pre><code>savendownload: function () {
    this.$("#saveanddownload").button('loading');
  
    var that = this;
    var formData = this.fetchData();
    if (formData) window.invoices.create({
      buyer: formData.buyer,
      items: formData.items,
      company: formData.company,
      action: "savendownload"
    }, {
      wait: true,
      success: function (model) {
        var data = model.toJSON();
  
        var filename = data.filename;
        //download code here
      }
    });
  }
  </code></pre>