Axium
11-25-2002, 08:56 PM
I have two IFRAMES embedded in a main document. I need to access divs to hide them from inside those iframes.
My hide function goes something like this in the parent window:
function hide(id) {
// dom check.. omitted
if (browserName == "NS") { document.layers[id].visibility = "hide"; }
else { document.all[id].style.visibility = "hidden"; }
}
How would you access that div from within the iframe? (I can just make a new function).
Thanks ahead of time.
Justin
My hide function goes something like this in the parent window:
function hide(id) {
// dom check.. omitted
if (browserName == "NS") { document.layers[id].visibility = "hide"; }
else { document.all[id].style.visibility = "hidden"; }
}
How would you access that div from within the iframe? (I can just make a new function).
Thanks ahead of time.
Justin