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

Looking for Object browser

P: n/a
Hello,

Can someone please point me to THE source for complete javascript
documentation?

Particualry I am interested in the document object. For example with,
document.getElementById(id), there is at least style and rows
properties and with rows you can get lenght:

eg document.getElementById(id).Style
document.getElementById(id).Rows.Length

What I would really like is to be able to look at an object browser
which shows every property and method associated with the javascript
document object (and all of the other objects too but I don't want to
be greety!).

Hopefully this is out there some where. I keep hanging out here asking
for fish when really I want a fishing rod of my own.

Can any one help me out?

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
sc******@hotmail.com wrote:
Can someone please point me to THE source for complete javascript
documentation?
See the FAQ (<URL:http://jibbering.com/faq/>).
[...] For example with, document.getElementById(id), there is at
least style and rows properties and with rows you can get lenght:
You misunderstand. The getElementById method returns a reference to an
element, such as a TABLE or [A]nchor, based on the id attribute of
elements in the document. Once you have a reference to an element, you
can then access the properties associated with it. Each type of
element will have its own set of properties.

The style object is present on all HTML elements and is provided by
most modern, scriptable browsers. It provides access to in-line style
data. That is, CSS applied via a style attribute on that element or
the style object itself.

The rows object is a collection - sort of like an array, but has only
a minimal set of properties and methods. You will find this only on
TABLE and table section (TBODY, THEAD and TFOOT) elements. However,
note that there is a rows property (a simple number, not an object) on
TEXTAREA elements to reflect the rows attribute. A rows property (a
string in this case) also exists on FRAMESET elements to reflect the
rows attribute.
eg document.getElementById(id).Style
document.getElementById(id).Rows.Length
Be careful. ECMAScript (and therefore JavaScript and JScript) is
case-sensitive. The style, rows, and length properties are all lowercase.
What I would really like is to be able to look at an object browser
which shows every property and method associated with the
javascript document object (and all of the other objects too but I
don't want to be greety!).


Mozilla browsers have a built-in object browser that accompanies the
DOM Inspector. To use it, target an object. In the left-hand panel,
there is a drop-down box in the top-left. Select "Javascript Object".

Note that no two browsers will have an identical object model. Even
standardised models will not be implemented in full by all user
agents, and you will also encounter proprietary properties
(particularly on IE).

[snip]

Hope that helps,
Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.