Extract values from another HTML in javascript
<p>I am developing WP8 browser check app. The App loads the below HTML pages in this order:</p>

<ol>
<li><em><strong>A.html</em></strong> that fades an Image several times, calculates(and displays) Frame rate. </li>
<li><em><strong>B.html</em></strong> that zooms in/out a pre-written text, calculate Speed(and displays) and other attributes. </li>
</ol>

<p>Both of these work fine. I now need to load a RESULTANT page(<strong><em>C.HTML</em></strong>) that should <strong>extract</strong> calculated scores from both A.html and B.html and display scores in tabular format.</p>

<p>To save content(in a temp file) i used:</p>

<pre><code>&lt;script type="text/javascript"&gt;
  window.onload = function () 
  {
    var sw : StreamWriter = new StreamWriter("HTML_Results.txt");
    sr.Write('xyz");

    //calculations done here
    sr.Write (result);
  }
&lt;/script&gt;
</code></pre>

<p>Unfortunately, this is not working. There is no syntax error, but text file after execution is empty.</p>

<p>I would like to know if this is the best way to extract values from html pages. Pls help.</p>
