To add content to an existing page requires a variety of code to support various browsers. An example that
supports IE, Netscape 4, Netscape 7 and Opera 7 (and possibly other more modern browsers such as Konqueror) is
available at:
<url:
http://jibbering.com/faq/#FAQ4_15 />
Ron Spears wrote:
> I am unfamiliar with those, can you please show me how to make it work
> using one of these formulas?
>
> Evertjan." <> wrote in message news:<Xns93D3681FDA66Beejj99@194.109.133.29>...
> > Ron Spears wrote on 10 aug 2003 in comp.lang.javascript:
> >
> > > Ah, nice. Ok, how - let's say if I have (2) of these unique scripts:
> > >
> > > <script type="text/javascript">
> > > function ButtonOne()
> > > {
> > > document.write('<table border="0" cellpadding="0" cellspacing="0" ' +
> > > ' width=600>');
> > >}
> > > </script>
> > >
> >
> > You cannot write to a page with document.write when the page is already
> > showing (your button!), without destroying the whole page structure
> > including the script part.
> >
> > Use innerHTML or DOM insert codes
--
| Grant Wagner <>
* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
*
http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
*
http://www.mozilla.org/docs/web-deve...upgrade_2.html