title: PHP Web scraping of Javascript generated contents
body: <p>I am stuck with a scraping task in my project.</p>
  
  <p>i want to grab the data from the link in $html , all table content of tr and td , here i am trying to grab the link but it only shows javascript: self.close()</p>
  
  <pre><code>&lt;?php
  include("simple_html_dom.php");
  
  $html = file_get_html('http://www.areacodelocations.info/allcities.php?ac=201');
  
   foreach($html-&gt;find('a') as $element)
     echo $element-&gt;href . '&lt;br&gt;'; 
  
  
    ?&gt;
  </code></pre>