[Javascript] Why does writeln clear the whole page?

Jeff Howden jeff at c4webdesign.com
Fri Jan 4 21:27:30 CST 2002


john,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: spacific at paradise.net.nz
>
> I am trying to use a  document.writeln  under certain
> conditions.  But it always causes the whole page to be
> cleared.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

that is the correct behavior if the page has already finished loading and
you then try to write to it.  the existing contents will get overwritten by
the contents of the call to the write() method.

good luck,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/






More information about the Javascript mailing list