title: How can I get phantom to "execute" my page?
body: <p>I have a script tag inside my page but it isn't being run. It is simply rendered.</p>
  
  <p>I have the following code:</p>
  
  <pre><code>var phantom = require('phantom');
  phantom.create(function(ph,error) {
    c = callback;
    ph.createPage(function( page,err ) {  
      page.setContent( output );
      callback = c;
      setTimeout(function() {
         page.evaluate(function() {
           return document.getElementsByTagName('html')[0].innerHTML;
         }, function(html) {
           callback(html);
         });
      }, 5000);
    });
  });
  </code></pre>
  
  <p>How do I tell phantom to "load"/"execute" the page so that the script on the page runs? (I don't want to use page.open)</p>
  
  <p>Also, content is <code>"&lt;p&gt;Page &lt;strong&gt;1&lt;/strong&gt; content.&lt;/p&gt;&lt;button id=\"page1_button\"&gt;button&lt;/button&gt;&lt;script&gt;document.getElementsByTagName('p').innerHTML = 'test';&lt;/script&gt;"</code></p>