[Javascript] Re: [Javascript] copy ifame to var

Luis Sánchez a19992517 at pucp.edu.pe
Tue Jan 7 15:52:04 CST 2003


Hi, I wrote this function that shows the HTML content of the iframe BODY.
The iframe is an element of DOCUMENT and it has its own document.body.
The iframe must have a name. <iframe name=\"iframe_name\">

function showHTML(){
	var a = document.iframe_name.document.body.innerHTML;
	alert(a);
}

LUIS SANCHEZ

------ Mensaje original -------
De : alfwro at wp.pl
Para : javascript at LaTech.edu
Fecha : Tue, 08 Jan 2002 00:05:10 +0100
Asunto : [Javascript] copy ifame to var
>Hi
>How can I copy the content of IFRAME to variable?
>
>var frameCont = 
>document.getElementById(\"iframeName\").???
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript        


More information about the Javascript mailing list