- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Passing mouse clicks through an overlaying HTML element
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;
}
Advertisements
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; }
Advertisements