Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] calling onmouseout on table element
- From: billy.reisinger at gmail.com (Billy Reisinger)
- Subject: [Javascript] calling onmouseout on table element
- Date: Fri May 4 07:25:34 2007
If I understand correctly, you are running into the problem where the table is exposed in between the rows / cells and firing the mouseout event when you hover over a table cell within it as well as when you mouse out of the table. You should be able to use the event object's toElement or relatedTarget properties (depending on which exists) to interrogate the mouseout event in order to see if the element that the mouseout is going to is not part of the table as well. Some pseudocode: assign event handler to table; /* in handler */ get event object; get event.toElement or event.relatedTarget, whichever one exists if the related element's parent is not the table in question, then: /* your code here */ ppk has compatibility tables for "toElement" and "relatedTarget" http://www.quirksmode.org/dom/w3c_events.html#targets On May 1, 2007, at 12:05 PM, Anthony Ettinger wrote: > I do not want the event delegated to children elements, only when the > mouse has left the table do I want to call the handler. > > How do I accomplish this? > > -- > Anthony Ettinger > Ph: 408-656-2473 > http://chovy.dyndns.org/resume.html > http://utuxia.com/consulting > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > https://lists.LaTech.edu/mailman/listinfo/javascript
- References:
- [Javascript] calling onmouseout on table element
- From: Anthony Ettinger
- [Javascript] calling onmouseout on table element
- Prev by Date: [Javascript] event delegation order
- Next by Date: [Javascript] automatic filling of login field
- Previous by thread: [Javascript] calling onmouseout on table element
- Next by thread: [Javascript] event delegation order
- Index(es):