In comp.lang.javascript message <36r7f719terpj6d2guc8v2hicvnmsgilvc@4ax.
The FAQ states:
9.4 How do I modify the content of the current page?
Using the non-standard but widely implemented innerHTML property...
Is it still the case that it is non-standard? Is there an
alternative that is standard?
If you only want to change plain ordinary text to plain ordinary text,
you can expect no problem, at least in current GUI browsers.
In my <
http://www.merlyn.demon.co.uk/holidays.htm> - is it right for
Canada? - the tables (when on the same page) are written with innerHTML,
disguised in function Wryt.
IIRC, problems come if one tries to rebuild the structure of a Table.
The theoretically-favoured way is to use the properties of elements to
alter the DOM tree. For an example, see
<
http://www.merlyn.demon.co.uk/inc-prop.js>, which provides two
functions, one of which creates a moderately complex first Form, which
may be seen first in <
http://www.merlyn.demon.co.uk/js-props.htm>.
You may now wonder what those properties are -- press the Enter button
on the Form, double-click 'body', Enter, double-click 'children', etc.
BUT, after double-clicking a number, just under the
Enter, replace, for example, x.y.z.7 with x.y.z[7] until I do
something about it. TOO LATE, I just did.