<table>
<tr>
<th>
</th>
<th>
</th>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
</table>
There appear to be no options on the insertcell method. Is there
another way to specify that the rows be "th" rows?
Thanks,
Jim.
> There appear to be no options on the insertcell method. Is there
> another way to specify that the rows be "th" rows?
Use
var th = document.createElement('th');
then you can use insertBefore or appendChild to insert the th cell into
a tr row element.
--
Martin Honnen
http://JavaScript.FAQTs.com/
Also, you won't get very far in IE unless you wrap your <tr> tags in
<thead> and/or <tbody>. In spite of the HTML 4 spec, I usually
reserve <th> for row headings, using <td> tags in a <thead> for column
headings. But now I'm getting into an HTML discussion, which is OT
for this list.