Home  >  Article  >  Web Front-end  >  Pass mouse click to overridden HTML element

Pass mouse click to overridden HTML element

WBOY
WBOYforward
2023-09-10 15:57:051464browse

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete
Previous article:How to specify in HTML the HTML content of a page to be displayed in an