Click to See Complete Forum and Search --> : Specifying frame


neil9999
10-17-2003, 09:50 AM
Hi,

i know that document.write puts some HTML onto the page, how do you do so into a different frame?

Thanks,

Neil

Khalid Ali
10-17-2003, 10:08 AM
parent.frameName.document.open();
parent.frameName.document.write();
parent.frameName.document.close();

try not to sue document.write itself it should always be used in the
open
write
close
format.Amd in most cases avoid using it unless you know the logical flow of your program

neil9999
10-17-2003, 10:29 AM
Thanks. The thing i'm going to be putting into the frame will be the only thing on the page, so parent.frameName.document.write(); should do.

Thanks again,

Neil