[thelist] document.write

Tom Dell'Aringa pixelmech at yahoo.com
Tue Jul 23 17:41:00 CDT 2002


--- ".jeff" <jeff at members.evolt.org> wrote:
> tom,
>
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > From: Tom Dell'Aringa
> >
> > I want to use multiple document.write()'s to write some
> > content to the page, using a JavaScript custom object.
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
> before or after the page has finished loading?


I currently am doing it using onLoad just to test. I think in the
final, I could do it whichever way works best.

>
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > I want to say the if you do one write, then another -
> > doesn't the second one REwrite over the first?
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
> it depends.  are you doing the writing from within a function that
> gets called by some action in the document?

I will be instatiating a JS object, and then calling its method
sometime during load or onload.

> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > I have like 6 in a row I need to do. I tried using
> > document.close() at the end, that doesn't work. I
> > thought there was some kind of concatenation you could
> > do, but I can't locate it.
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
> you could always concatenate the string you want to write and then
> do the document.write() once you've got the string the way you want
> it.
>
> .jeff



=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com



More information about the thelist mailing list