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

if(document.all)

Hi,

What does all mean in if(document.all)? I could not find an object
called all in the page.

Thanks
Jul 20 '05 #1
1 29866
ym*@kicon.com (chirs) writes:
What does all mean in if(document.all)? I could not find an object
called all in the page.


Microsoft's Internet Explorer has a proprietary property of the document
object that is called "all".
Writing
if (document.all)
tests whether this property is present.

Some believes that the presence of document.all implies that the
browser is IE. That is no longer the case, since some other browsers
have also implemented it. The only thing you can really assume after
such a check, is that document.all exists (or doesn't).

In IE, document.all is an "HTML Collection" containing all elements
of the page. You can write
document.all['foo']
to get a reference to the element with ID="foo". The offical way
to do that is
document.getElementById("foo")
and it is supported by IE from version 5.

/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 #2

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

Similar topics

5
by: PhiSYS | last post by:
I want to know what's wrong with this code (I'm an amateur programmer). I'm trying to check if every field has a value or if checkboxes/radios have at least one item checked on each group (yes, you...
3
by: michael | last post by:
I guess this is partly a javascript questions, but is there a way to check if a CSS id or class exists anywhere on a page. For example, if the id "bla" exists, it should return true only if the...
1
by: Andrew Wrigley | last post by:
Hi Should a hidden form become visible when all other forms are closed? This is what happens, and to ensure that it is always hidden, I have to set the on got focus event handler of the form...
3
by: SSonnenwald | last post by:
I have created a piece of code that uses a ThreadPool class and the QueueUserWorkItem method to add items to the the ThreadPool. What would seem to be simple I just can not figure out how to tell...
3
by: fdan4817 | last post by:
I read an earlier thread about a Java developer switching to .Net with much interest. It still has not resolved some questions that I am wrestling with. I am new to Windows programming (other...
3
by: amahdian | last post by:
This might be a very simple question but I was wondering how you can check whether all the records in a specific field of a table have null in them. The following doesn't work: If...
2
by: jimmy | last post by:
Hi, I have an array of type integer which i now want to sort through to find out if all of the elements are equal to one another. I have code that finds the lowest element in the array however i...
1
by: Wade | last post by:
I have form with a listbox "lstOperator(s)" which is populated by "tblOperators.OperatorName". At the top of the list I have added the option to "Select All". I have added a command button "cmdNext"...
4
by: shall | last post by:
I have several pages ( ASP) that were working OK on NT4. We moved it to Server 2003. At random , it appears that the Server.CreateObject fails. I've looked through the code and it looks OK. ...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...

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.