Background:
My site is in magento open source ecommerce solution, and in the top (header) it has a shopping cart icon. On dekstop, when user hovers
This can also be achieved using vanilla javascript =>
Document click me
According to the exit variable value (i.e. either true or false) you can define further action.