Page 1 of 1

Inserting at cursor position in iframe

Posted: Fri Sep 18, 2009 6:48 am
by pcoder
Hi,
I am spending a lots of time to insert string at the cursor position in iframe. But I am not getting the result.
I hope some body can help me on this.
I would really appreciate your suggestion on this.

Re: Inserting at cursor position in iframe

Posted: Fri Sep 18, 2009 11:27 am
by kaszu
You can use execCommand('inserthtml', ...) for standard browsers and document.selection.createRange().pasteHTML(...) for IE.