473,387 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

innerHTML support

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


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
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Phil N | last post by:
Hello again Site I'm working on: http://www3.telus.net/bikim/lightning/test/ - 'coach' & 'main' links swap innerHTML of div element - id 'textArea' works fine in NN7; IE6 reports 'Object...
11
by: kaeli | last post by:
Hey all, AFAIR, innerHTML started as MS proprietary, but Mozilla implemented it as well. Does anyone know if any other browsers support it? It is not in the W3C DOM, is it? A quick GIS seemed to...
14
by: catorcio | last post by:
I'm trying to have some text in my page changed by clicking a button. Googleing around I've discovered that innerText doesn't work with every browser, so I've switched to innerHTML. It works fine...
3
by: soup_or_power | last post by:
Hi Sorry about the heading. I have a table with td consisting of lists with <select></select>. When I do a document.getElementById("element").innerHTML I don't see the selected item. IOW, the...
38
by: Luke Matuszewski | last post by:
Welcome I have read the in the faq from jibbering about the generic DynWrite, but i also realized that is uses only innerHTML feature of HTML objects. (1) Is there a DOM function which is very...
10
by: Jake Barnes | last post by:
This weekend I wanted to learn AJAX, so I set up a little toy page where I could experiment. The idea of this page is that you click in one of the boxes to get some controls, at which point you can...
9
by: Hallvard B Furuseth | last post by:
Why does the FAQ (Q 4.15) recommend innerHTML when so many here say one should use createElement(), replaceChild() etc? Also, why does the "Alternative DynWrite function" at...
6
by: sonic | last post by:
Ok, i am sure everyone is sick of hearing about this. but i've checked about 10 different posts/sites about this issue, and they all say "use DOM" but i think there is more to be said. Perhaps I...
6
by: David Gillen | last post by:
Hello, I'm hoping someone can shed some light on this, problem is in IE6 and 7. FF is okay. I have within my html <tbody id="dataTable" name="dataTable"></tbody> And then some javascript...
6
by: PaPa | last post by:
I'm not sure this is a javascript issue or an HTML issue. I notice that when I extract the contents of a div using the innerHTML property (?), that I wind up with a literal variable (?) which...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.