title: How to call window.print on html page returned after ajax call
body: <p>I have a print button inside a bootstrap modal.</p>
  
  <pre><code>$('#printST').click(function () {
      $.ajax({
          type: 'GET',
          url: 'print',
          data: formData,
          dataType: 'html',
          success: function (html) {
             // how to print the content of html?
          },
          error: function (data) {
              console.log('Error:', data);
          }
      });
  });
  </code></pre>
  
  <p>I want to print the data returned.</p>
  
  <p>In my print page</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  window.onload = function() { window.print(); }
  </code></pre>
  
  <p></p>
  
  <p>In my controller</p>
  
  <pre><code>...
      return View::make('pages.print');
  </code></pre>
  
  <p>How can i print the content of this pages after ajax call?</p>