rob wrote:[color=blue]
> I know IE first supported it, and Mozilla supports it, what about Opera
> and Safari? IE 5 on the mac does, right?[/color]
As far as I know innerHTML is supported by IE4 and later on all
platforms, and by Netscape 6/7, by Mozilla, and by Opera 7. It is not
supported by Netscape 4 or by earlier Opera versions.
I don't know about Safari
One warning about innerHTML, it is supported different on browsers. IE will
give you the current HTML of the element, most other browsers will give you
the source HTML of the element. If you add elements and such to the
element, you will only see the HTML in IE's version of innerHTML.
-Steve
"rob" <rob@pleaseremo vespamcherny.co m> wrote in message
news:AcednfMFJf R7vyeiU-KYiw@giganews.c om...[color=blue]
>
> I know IE first supported it, and Mozilla supports it, what about Opera
> and Safari? IE 5 on the mac does, right?
>
> many thanks
>
>[/color]
(please don't top post, or at least trim your quotes)
[color=blue]
> One warning about innerHTML, it is supported different on browsers. IE will
> give you the current HTML of the element, most other browsers will give you
> the source HTML of the element. If you add elements and such to the
> element, you will only see the HTML in IE's version of innerHTML.[/color]
Both Opera 7 and Mozilla gives the current document structure.
If I add a child node with appendChild, then innerHTML reflects this.
I don't have access to any other browser that supports innerHTML.
/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
On Tue, 18 Nov 2003 15:43:57 +0100, Martin Honnen <mahotrash@yaho o.de>
wrote:
[color=blue]
>
>
>rob wrote:[color=green]
>> I know IE first supported it, and Mozilla supports it, what about Opera
>> and Safari? IE 5 on the mac does, right?[/color]
>
>As far as I know innerHTML is supported by IE4 and later on all
>platforms, and by Netscape 6/7, by Mozilla, and by Opera 7. It is not
>supported by Netscape 4 or by earlier Opera versions.
>I don't know about Safari[/color]
AIUI Konqi and Safari both support it, as do various other even less
common browsers.
Comment