SitePoint Sponsor |
|
User Tag List
Results 1 to 1 of 1
-
Feb 24, 2003, 22:38 #1
- Join Date
- Sep 2002
- Posts
- 180
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Need help using the moveToElementText Function for a frame within an iframe
Hi,
I have used the following script in a no-frame document to replace text of a specified span (id=element142) with no problems.
Code:function GenerateCode() { r=document.body.createTextRange(); r.moveToElementText(element142); r.text="Newly generated text" }
Code:function GenerateCode() { r=myEditor.page.document.body.createTextRange(); r.moveToElementText(element142); r.text="Newly generated text" }
Thanks in advance,
David
Bookmarks