frontline
12-25-2002, 04:56 PM
Hello
i have iframe in document , in the document i have simple <span name="testme" id="zzz"></span>
now in the iframe im trying to access the span in this way ..
function foo(){
if(window.parent)
window.parent.document.body.onload=function(){alert(window.parent.testme.id);}
}
but with no luck , so my question is how i can access elements from the iframe to the host document
thanks
i have iframe in document , in the document i have simple <span name="testme" id="zzz"></span>
now in the iframe im trying to access the span in this way ..
function foo(){
if(window.parent)
window.parent.document.body.onload=function(){alert(window.parent.testme.id);}
}
but with no luck , so my question is how i can access elements from the iframe to the host document
thanks