Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    May 2003
    Location
    Athens , Greece
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Where are the events in the W3C DOM ?

    Hello.
    I looked at the W3C DOM Definition but i could nowhere
    find some events like .onmouseclick
    or some attributes like .vlink etc. for the <a> tag.

    Do you know where i can find a complete list with all events,attributes,properties,methods etc.?
    Is that DHTML or DOM ?

    p.s. i searched the references that are being suggested in the top threads.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Have a look at this - http://www.w3schools.com/xhtml/xhtml_reference.asp

    Specifically - click events are "onclick", while vlink is deprecated in favour of CSS - the equivalent is "a:visited"
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #3
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    If you mean dynamically assigning them through script, then you must follow the W3C DOM Level 2 Events specification, in which you don't have direct access to them; rather you add them into a handler list:

    EventTarger.addEventListener("eventname", handler, usecapture);
    Last edited by jkd; 06-12-2003 at 04:13 PM.

  • #4
    New to the CF scene
    Join Date
    May 2003
    Location
    Athens , Greece
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    and one more thing.
    the window or document tags are that DHTML rather than
    DOM ?
    for example window.document etc.
    and where can i find a reference for all these tags.
    msdn sucks.

  • #5
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    window.document is DOM. DHTML is just (X)HTML+DOM+CSS+Javascript.

    The definitive references for HTML, DOM, CSS, and so on (but not Javascript) are kept and maintained by the World Wide Web Consortium.
    Last edited by Floyd; 06-13-2003 at 11:09 AM.

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The best JS reference I know of is devedge - http://devedge.netscape.com/central/javascript/
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #7
    New to the CF scene
    Join Date
    May 2003
    Location
    Athens , Greece
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by brothercake
    The best JS reference I know of is devedge - http://devedge.netscape.com/central/javascript/
    but i can nowhere find the window tag in the DOM reference
    of W3C.
    do you know in which specification it is ? In what DOM level is it?

    thanks !
    alex

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    window isn't part of the DOM; the top level object is document.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •