...

View Full Version : Where are the events in the W3C DOM ?



alexandros
06-12-2003, 12:50 PM
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.

brothercake
06-12-2003, 01:12 PM
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"

jkd
06-12-2003, 02:39 PM
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);

alexandros
06-13-2003, 07:47 AM
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.

Floyd
06-13-2003, 10:04 AM
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 (http://www.w3.org/).

brothercake
06-13-2003, 11:21 AM
The best JS reference I know of is devedge - http://devedge.netscape.com/central/javascript/

alexandros
06-13-2003, 01:14 PM
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

brothercake
06-13-2003, 01:52 PM
window isn't part of the DOM; the top level object is document.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum