[thelist] document.write

Chris Mason masonc at masonc.com
Tue Jul 23 17:40:01 CDT 2002

Append to a var then write the var

var html;

html = "text"
html += "more text"


as a recall,  without looking up how I did it last time I wrote any JS.

On Tue, 2002-07-23 at 18:15, Tom Dell'Aringa wrote:
> I'm forgetting something obvious here, help me out.
> I want to use multiple document.write()'s to write some content to
> the page, using a JavaScript custom object.
> I want to say the if you do one write, then another - doesn't the
> second one REwrite over the first? 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.
> Tom
> =====
> 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
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !

More information about the thelist mailing list