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

html objects in javascript

P: n/a
Beginner question -> Can someone point me to reference that lists html
objects and their associated objects in javascript? For instance, I
think that

document.someForm.someSelect.options

provides access to the options array in a SELECT object. This seems
straight-forward enough, but I can't find a reference that maps things
like this out plainly for us noobs. I wonder especially about methods
that might be available on these objects - or is that up to the
particular DOM? ..confused

Appreciate any help!

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


P: n/a
J Weaver <sc********@yah00.com> writes:
Beginner question -> Can someone point me to reference that lists html
objects and their associated objects in javascript? For instance, I
think that
document.someForm.someSelect.options
I would prefer
document.forms['someForm'].elements['someSelect'].options
but the above will work in most browsers.
provides access to the options array in a SELECT object. This seems
straight-forward enough, but I can't find a reference that maps things
like this out plainly for us noobs.
The most "official" source would be the W3C DOM specifications.
<URL:http://www.w3.org/DOM/Activity.html>
You will mostly need the DOM 2 Core, HTML, and Events specifications.

You did say for noobies though, so unless you are used to reading
specifications, it is probably a little too dense.

Both Netscape (via Mozilla) and Microsoft have DOM references for
their browsers.

<URL:http://www.mozilla.org/docs/dom/domref/>
<URL:http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/dhtml_node_entry.asp>
I wonder especially about methods
that might be available on these objects - or is that up to the
particular DOM? ..confused


It is mostly standardized, but with proprietary extensions.

/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 discussion thread is closed

Replies have been disabled for this discussion.