Click to See Complete Forum and Search --> : document.write and frames


rpgbuster
01-23-2003, 02:03 PM
If you have a frame named "frame1", and in "frame2" you have something that uses document.write, how can you write to "frame1" ? I hope this isnt confusing. Thanks.:D

khalidali63
01-23-2003, 02:10 PM
how about
parent.frames[frameIndex].document.write("").

it should work

rpgbuster
01-23-2003, 02:17 PM
It doesn't seem to work. when you say [frameIndex], do you mean that the path to frame1 would go there, the path to the frames page, or the name of the frame? Thanks for helping.

rpgbuster
01-23-2003, 02:22 PM
It did work, i just forgot to use ""s. Thanks a million!:cool: