HighDots Forums  

html objects in javascript

Javascript JavaScript language (comp.lang.javascript)


Discuss html objects in javascript in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
J Weaver
 
Posts: n/a

Default html objects in javascript - 11-07-2003 , 03:22 PM






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!


Reply With Quote
  #2  
Old   
Lasse Reichstein Nielsen
 
Posts: n/a

Default Re: html objects in javascript - 11-07-2003 , 05:21 PM






J Weaver <scruffdawg (AT) yah00 (DOT) com> writes:

Quote:
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.

Quote:
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>

Quote:
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 - lrn (AT) hotpop (DOT) com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.