[Javascript] Iframe's Real innerHTML
Roger Roelofs
rer at datacompusa.com
Thu Feb 10 08:14:43 CST 2005
Flavio,
On Feb 10, 2005, at 9:04 AM, Flavio Gomes wrote:
> Hello everyone,
>
> I got myself on a kind of a little problem that I couldn't find a
> solution yet.
> In my program there's an iframe that does some calculations and thru
> JavaScript I change it's (the iframe's) "src" attribute to recalculate
> the value. But I couldn't find the way to bring it back to JavaScript.
>
> The better (and not working =] ) aproach I could do was:
>
> """""""""""""""""""""
> <iframe id=myIFrame src="medoescalculations.html">This is not what
> I want </iframe>
> <script>
> oFrame = document.getElementById(myIFrame);
> alert(oFrame.innerHTML);
> </script>
> """""""""""""""""""""
What about
oFrame = document.getElementById(myIFrame).document;
Roger
-------------------------------------------------------
Roger Roelofs web www.datacompusa.com
Datacomp Appraisal Services web www.mhvillage.com
3215 Eaglecrest Drive, NE Email rer at datacompusa.com
Grand Rapids, MI 49525-4593
More information about the Javascript
mailing list