I have this text in a textbox. The document body has designMode set to on. (| is the cursor)
<div><h3>Hi there</h3><p>Welcome| to the page</p></div>
After clicking a button, the text writes the innerHTML of a div.
Question: From the position of the cursor in the textbox, can I set the cursor to that same position in the DOM.
Hi there
Welcome| to the page
Thanks.