By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,799 Members | 1,311 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,799 IT Pros & Developers. It's quick & easy.

Getting Text from an Iframe in Mozilla

P: n/a
Hi,

Can anyone tell me how to get the text from an Iframe in Monzilla
using JavaScript?

TIA

Doug

Feb 20 '07 #1
Share this Question
Share on Google+
1 Reply

P: n/a
ASM
dougloj a écrit :
Hi,

Can anyone tell me how to get the text from an Iframe in Monzilla
using JavaScript?
Not possible if the file displayed in the iframe is not from same domain
as this of main page.

What do you mean by "text" ?

Insertion in end of main page with content of iframe (named 'myIframe'):

theText = parent.myIframe.document.body.cloneNode(true);
document.body.appendChild(theText);

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Feb 20 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.