Does anybody know of either a jQuery or native JavaScript way to enable mouse events through layers? e.g. enable a link underneath a div
.
Other solutions that cannot use in my case:
pointer-events
(edit as of 2017, widely supported) The browser triggers many events. A full list is available in MDN, but here are some of the most common event types and event names: mouse events ( MouseEvent ): mousedown, mouseup, click, dblclick, mousemove, mouseover, mousewheel, mouseout, contextmenu.
The mouseover event occurs when a mouse pointer comes over an element, and mouseout – when it leaves.
You can do all that or you can just use this CSS for that div:
pointer-events: none
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With