title: Finding Content from Javascript using Simple HTML DOM Parser
body: <p>How do I find the content "Please enter a valid key again" using Simple HTML DOM Parser?</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;script language="javascript"&gt;
       function Enable() {      
          alert('Please enter a valid key again');
       }
  &lt;/script&gt;
  </code></pre>
  
  <p>This don't seem to work: </p>
  
  <pre><code>&lt;?php
  
  include_once("simple_html_dom.php");
  
  $html = file_get_html("incorrect.html");
  
  $ret = $html-&gt;find("Please enter a valid key again", 0);
  
  if ($ret) {
      echo "found";
  } else {
      echo "not found";
  }
  ?&gt;
  </code></pre>