Now isn't it so that document.write replaces the existing content? That
is rather harsh for what I have in mind.
That is incorrect... in this context. document.write works differently
in two distinctively different contexts:
1. While the page is still parsing... Everything written is appended
after the current script tag, and then parsed into the document
2. After the page has parsed, ie: an action has occured (such as onLoad,
onClick, etc)... In this case, it overwrites everything.
The context I gave, is of type 1. If you do it in inline scripting, you
have nothing to fear.
To clarify:
<SCRIPT ...> document.writeln(...) </SCRIPT>
will append after the script tag
<SCRIPT ...> function ABC(...) { document.writeln(...); } </SCRIPT>
<a href=... onClick="ABC(...)">...</a>
will wipe out the page with the new text, when the link is clicked
Brian