S
syshex
Hi everyone !
I'm really new to javascript, and am possibly aiming quite high
already, but still I feel I just satisfy my curiosity and ask you all
this question.
I've got this really really simple page which has an Iframe with
id="AAA" and a div section with id="BBB" . I've also got a link that
is points to void but onclick action fires a function.
What this function should do is make the Iframe load a specific page.
For that I use this code :
function firenow()
{
top.document.getElementById("AAA").src = "http://www.google.com/"
;
}
This is working fine.
Now the IFrame has an onload calling another function .... and what
this function should do it get all the source HTML (<html> <head>
,...... </head> .... </html> ) of the page being displayed on the
Iframe AAA and place that source code in the DIV BBB or inside a
variable if you would like.
Is this at all possible ?
Can anyone provide a really simple sample of how to do this ?
thanks a lot for your help
sh
I'm really new to javascript, and am possibly aiming quite high
already, but still I feel I just satisfy my curiosity and ask you all
this question.
I've got this really really simple page which has an Iframe with
id="AAA" and a div section with id="BBB" . I've also got a link that
is points to void but onclick action fires a function.
What this function should do is make the Iframe load a specific page.
For that I use this code :
function firenow()
{
top.document.getElementById("AAA").src = "http://www.google.com/"
;
}
This is working fine.
Now the IFrame has an onload calling another function .... and what
this function should do it get all the source HTML (<html> <head>
,...... </head> .... </html> ) of the page being displayed on the
Iframe AAA and place that source code in the DIV BBB or inside a
variable if you would like.
Is this at all possible ?
Can anyone provide a really simple sample of how to do this ?
thanks a lot for your help
sh