Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting text into editable IFRAME at the cursor position

Status
Not open for further replies.

TanyaElavsky

Programmer
Feb 26, 2007
1
US
Is it possible to insert a string into an IFRAME at the cursor position using Firefox? .selectionStart property seems to work for textareas, but not an IFRAMEs. Does anyone know the solution? Please help.
 
The only way I can think of to make an entire iframe editable is to fill the entire iframe with a textarea. In that case, you can use your .selectionStart statement in the textarea in the iframe.

[small]"I see pretty girls everywhere I look, everywhere I look, everywhere I look. - Band song on movie "The Ringer"[/small]
<.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top