title: Dynamically load a table using javascript
body: <p>I want to load the table dynamically as soon as the page loads.i have tried the following code , but it is not showing 2nd column values found out in javascript.plz help me out.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text\javascript"&gt;
  var brw=navigator.appCodeName;
  var bw=navigator.appName;
  var vrs=navigator.appVersion;
  var plt=navigator.platform;
  document.getElementById('r1').innerHTML = ' '+brw;
  document.getElementById('r2').innerHTML = ' '+bw;
  document.getElementById('r3').innerHTML = ' '+vrs;
  document.getElementById('r4').innerHTML = ' '+plt;
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;table border='1'&gt;
          &lt;tr&gt;&lt;td&gt;Browser code &lt;/td&gt;&lt;td&gt;&lt;div id='r1'&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;Browser &lt;/td&gt;&lt;td&gt;&lt;div id='r2'&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;Browser Version &lt;/td&gt;&lt;td&gt;&lt;div id='r3'&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td&gt;Platform &lt;/td&gt;&lt;td&gt;&lt;div id='r4'&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;/table&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>