Mel wrote:
how can i add text to an html that is displayed in an iframe ?
You simply need to access the document in the iframe and then use the
normal DOM methods to create and append stuff e.g. with
<iframe name="iframeName" src="whatever.html" ...></iframe>
you could (once the iframe document is loaded) do
var iframeDoc = window.frames.iframeName.document;
var text;
if (iframeDoc.createTextNode && (text =
iframeDoc.createTextNode('Kibology for all.'))) {
iframeDoc.body.appendChild(text);
}
--
Martin Honnen
http://JavaScript.FAQTs.com/