W3C home > Mailing lists > Public > www-dom@w3.org > January to March 1999

what is the event source ??

From: Jean-Michel Leon <jmleon@Eng.Sun.COM>
Date: 25 Jan 1999 17:32:56 -0800
To: www-dom@w3.org
Message-ID: <lm07luaom2f.fsf@eng.sun.com>


Hi,


It seems (reading CSS2, 2.2) that the 'target' property of the event
object is defined as the top most element that has received the
event. For example:



  <TABLE border=0 cellspacing=0 cellpadding=0
         onmousedown=doSomething() onmouseup=unDoSomething()>
    <TR>
	  <TD> content </TD>
     </TR>
</TABLE>


In this case, by default TABLE, TR and TD have the same size, and TD
would always be the target, and I don't see how to know that the event
handler was triggered on TABLE (i.e. that TABLE is the source that
triggered the event).



Did I miss something ?



jm.
Received on Monday, 25 January 1999 20:33:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:46 GMT