title: Is there any way to make Javascript work in DOMPDF-generated PDFs?
body: <p>I am currently testing DOMPDF and got it working quite nice for my purposes, including CSS styling, displaying content fetched from a mysql database etc.</p>
  
  <p>Now I tried to use some Javascript, but it doesn't work. I used a very simple script for testing:</p>
  
  <p>HTML somewhere on the page:</p>
  
  <pre><code>&lt;div id='mydiv1' style='width: 100%;height:20px;background:#ddd;'&gt;&lt;/div&gt;
  </code></pre>
  
  <p>The JS (just above the closing <code>&lt;/body&gt;</code> tag (but I also tried it right after the opening <code>&lt;body&gt;</code> tag):</p>
  
  <pre><code>&lt;script&gt;
      document.getElementById('mydiv1').innerHTML = 'this is a test';
  &lt;/script&gt;   
  </code></pre>
  
  <p>When I echo this page in the browser (I am echoing a variable which contains the complete HTML/PHP page), that text appears in the DIV. When I put the same variable in DOMPDF's <code>loadHtml</code> and then render and output it, the script-generated text doesn't appear in the PDF (the rest of the page does).</p>
  
  <p>So my question is: Is there any way to make Javascript work in DOMPDF-generated PDFs? </p>