Creating an object in javascript pointing to a table row with an "id"
<p>I'm having trouble finding information online for creating a object in javascript and pointing it to a id in the html. </p>

<p>Here's what I have so far for the JavaScript:</p>

<pre><code> function countRecords()
 { 
 headRow=new Object();
 //point to specific id here?
 var rowCount = 0;
</code></pre>

<p>The HTML:</p>

<pre><code>&lt;table id="prodTable"&gt;
 &lt;tr&gt;&lt;th colspan="8"&gt;Digital Cameras&lt;/th&gt;&lt;/tr&gt;
 &lt;tr id="titleRow"&gt;
  &lt;th&gt;Model&lt;/th&gt;
  &lt;th&gt;Manufacturer&lt;/th&gt;
  &lt;th&gt;Resolution&lt;/th&gt;
  &lt;th&gt;Zoom&lt;/th&gt;
  &lt;th&gt;Media&lt;/th&gt;
  &lt;th&gt;Video&lt;/th&gt;
  &lt;th&gt;Microphone&lt;/th&gt;
 &lt;/tr&gt;
</code></pre>
