Click to See Complete Forum and Search --> : functions using html-objects on other frame


Chickenman
03-09-2003, 04:22 PM
Hello,

is there a way to adress a layer on a different frame from withina function, f.e. using

document.getElementById("div on other frame").style.visibility = "hidden";

Thanks

Chickenman

khalidali63
03-09-2003, 04:46 PM
Yes,you can do that..

http://68.145.35.86/skills/javascripts/frames/ParentChildFramesInteraction.html

Cheers

Khalid

Chickenman
03-09-2003, 05:18 PM
Hi Khalid

I wish I could call me advanced...I will have to think a bit about your script but thank you very much!


Alex:confused:

pyro
03-09-2003, 05:25 PM
Wouldn't it be as easy as:

top.thenameoftheframe.document.getElementById("div on other frame").style.visibility = "hidden";

Chickenman
03-09-2003, 05:43 PM
you're right...i tried it with parent.[framename].....no luck but top.[framename] works fine

Thanks

Alex:p