html objects in javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • J Weaver

    #1

    html objects in javascript

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

    document.someFo rm.someSelect.o ptions

    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!

  • Lasse Reichstein Nielsen

    #2
    Re: html objects in javascript

    J Weaver <scruffdawg@yah 00.com> writes:
    [color=blue]
    > Beginner question -> Can someone point me to reference that lists html
    > objects and their associated objects in javascript? For instance, I
    > think that
    >
    >
    > document.someFo rm.someSelect.o ptions[/color]

    I would prefer
    document.forms['someForm'].elements['someSelect'].options
    but the above will work in most browsers.
    [color=blue]
    > 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.[/color]

    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_entr y.asp>
    [color=blue]
    > I wonder especially about methods
    > that might be available on these objects - or is that up to the
    > particular DOM? ..confused[/color]

    It is mostly standardized, but with proprietary extensions.

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    Working...