focus not getting set on td
<p>I am coding for a html wysiwyg editor. I am trying to modify a table already present in the editor. I have a menu from which i can modify rows/columns to the table.</p>

<p>After I insert a new row/column I need to set the focus to the new row/column. This works fine.</p>

<p>But when i delete a row/column, I am not able to set focus to the nearby row/column.</p>

<p>I am setting tabIndex property to td to focus it.</p>

<pre><code>tbody.removeChild(tr); //tr is the row to be deleted 
pre_tr.childNodes[td.cellIndex].tabIndex = 1; //pre_tr has the previous tr to be focused
pre_tr.childNodes[td.cellIndex].focus();
</code></pre>

<p>Any help in this regard is appreciated. Thanks.</p>
