Inserting at cursor position in iframe

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Inserting at cursor position in iframe

Post 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.
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: Inserting at cursor position in iframe

Post by kaszu »

You can use execCommand('inserthtml', ...) for standard browsers and document.selection.createRange().pasteHTML(...) for IE.
Post Reply