Passing mouse clicks through an overlaying HTML element <div>

HTMLJavascriptProgramming Scripts

Retrieve the mouse coordinates in the click event.

 Now, retrieve the element by hiding your overlay, and use the following. After that, redisplay the overlay −

document.elementFromPoint(x, y)

You can also use the following CSS −

div {
   pointer-events:none;
}
raja
Published on 06-Apr-2018 07:52:17
Advertisements