click event with overlapping

click event with overlapping

Hello guys,

I've read of a nice function a few weeks ago to solve the following problem...:
Imagine we have a foto-galery and a layer on the complete page filled with black with an opacity of 50% to make the "background" darker so that the image is in foreground. Now i want to trigger a click event which is on the "normal page" behind the dark layer. But when i click on this, it obviously click on the dark layer because the layer is above all the other elements and the click event isn't triggered.
With this function you can determine if not only the layer but also other events under the layer are clicked.

...But I cannot remember the name...