Home >Web Front-end >HTML Tutorial >Pass mouse click to overridden HTML element
Retrieve the mouse coordinates in the click event.
Now, retrieve the element by hiding the overlay and use the following command. After that, redisplay the overlay -
document.elementFromPoint(x, y)
You can also use the following CSS -
div { pointer-events:none; }
The above is the detailed content of Pass mouse click to overridden HTML element. For more information, please follow other related articles on the PHP Chinese website!