<table id="z" border="1" width="20px" contenteditable>
<tbody>
<tr>
<th></th>
</tr>
</tbody>
</table>
How to put the cursor to this cell (=table) using Javascript - as it works after a usual click? So after that, keyboard printing should work there. focus()
doesn't work, but it works with <input>
.
I use Google Chrome.