Pass mouse click to overridden HTML element

WBOY
Release: 2023-09-10 15:57:05
forward
1440 people have browsed it

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)
Copy after login

You can also use the following CSS -

div { pointer-events:none; }
Copy after login

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!

Related labels:
source:tutorialspoint.com
Previous article:How to specify in HTML the HTML content of a page to be displayed in an