473,394 Members | 1,721 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,394 software developers and data experts.

DOM, JavaScript, and Browser differences

I am looking for more information on what browsers do with HTML
elements. I noticed that in Firefox after grabbing an html element
through a dom method (getElementById was what i used) you can do
things that you can't do in IE. For instance. I can use a For in
loop with the element, there is a constructor property attached with
the element, and doing a toString I can find out what type of element
it is [object HTMLInputElement] (or something like that). These are
things that I can not do in IE. I am looking to get more information
on this. Any site that explains these differences? Anyone can
elaborate on this for me?

Feb 12 '07 #1
2 2666
NeoAlchemy wrote:
I am looking for more information on what browsers do with HTML
elements. I noticed that in Firefox after grabbing an html element
through a dom method (getElementById was what i used) you can do
things that you can't do in IE. For instance.
I can use a For in
loop with the element,
I am sure IE allows you to use for..in too. But if you do a for..in with
a host object then it depends on the implementation of the host object
which properties are enumerable respectively whether there are any
enumerable properties.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Feb 12 '07 #2
On Feb 12, 7:23 am, Martin Honnen <mahotr...@yahoo.dewrote:
I am sure IE allows you to use for..in too. But if you do a for..in with
a host object then it depends on the implementation of the host object
which properties are enumerable respectively whether there are any
enumerable properties.
Is there any place that talks about the implementations for the host
objects for different browsers?

Feb 16 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: christian9997 | last post by:
Hi We have started off using a $_GET parameter to keep track of the user's browser: We detect what browser the visitor is using when he first arrives on our website then we do a redirect to...
6
by: Andy Fish | last post by:
Hi, I want to use an anchor tag to invoke some javascript and I've read that it's bad form to use <a href="javascript:foo()"> I've read endless usenet posts and hint sites on the net, they all...
5
by: wylbur37 | last post by:
How do you find out what version of JavaScript your browser supports? Is there a JavaScript function that will tell you? __________________________________ Do you Yahoo!? Find out what made...
14
by: John Bentley | last post by:
Note this is crossposted to comp.lang.javacript and microsoft.public.dotnet.scripting. After some Googling and FAQing my understanding of these terms is, crudely: Javascript (3 different...
12
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical...
7
by: Eric van Riet Paap | last post by:
Wouldn't it be nice if we could program our browser in Python instead of Javascript? - Eric
3
by: sqpost | last post by:
Hi, I have a web-application project which requires interactive User Interfaces. It is more like a web based xml content editor. I have seen a few javascript based text editors but not much flash...
4
by: Lando | last post by:
I'm a bit confused ...javascript and jscript are the same thing ? javascript and java are related.......... javascript in windows differs from javascript in linux....? Sorry,... if some question...
3
by: pradeep | last post by:
Hello, Can any one tell me different functions or properties of javascript which are gives different outputs on different browsers ? Thanks in advance. Bye
3
by: DanWeaver | last post by:
I use visual studio 2008 and am learning to use javascript. I am constructing a javascript heavy website and have tried using the visual studio tools as well as Firebug- an add on for Firefox which...
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:
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...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.