tags:

views:

194

answers:

1

There is indeed method element.componentFromPoint(iCoordX, iCoordY) in Internet Explorer, but how do I differentiate a mouse click occurred in the content area of an element from the click occurred on its scrollbar in other browsers?

+1  A: 

In Gecko-based browser it is possible to check on Event.originalTarget. If click happened on element's scrollbar this property will have a XULElement object returned. WebKit and Presto to go...

Sergey Ilinsky
I did not know that. Have been looking for a solution to this for years.
Crescent Fresh