By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,516 Members | 1,176 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,516 IT Pros & Developers. It's quick & easy.

innerHTML support

P: n/a
rob

I know IE first supported it, and Mozilla supports it, what about Opera
and Safari? IE 5 on the mac does, right?

many thanks
Jul 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a


rob wrote:
I know IE first supported it, and Mozilla supports it, what about Opera
and Safari? IE 5 on the mac does, right?


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
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2

P: n/a
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" <ro*@pleaseremovespamcherny.com> wrote in message
news:Ac********************@giganews.com...

I know IE first supported it, and Mozilla supports it, what about Opera
and Safari? IE 5 on the mac does, right?

many thanks

Jul 20 '05 #3

P: n/a
"Stephen Brown" <no****@telusplanet.net> writes:

(please don't top post, or at least trim your quotes)
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.


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 - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #4

P: n/a
On Tue, 18 Nov 2003 15:43:57 +0100, Martin Honnen <ma*******@yahoo.de>
wrote:


rob wrote:
I know IE first supported it, and Mozilla supports it, what about Opera
and Safari? IE 5 on the mac does, right?


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


AIUI Konqi and Safari both support it, as do various other even less
common browsers.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.