Jquery detect what was clicked




















Apparently the inner click event is processed by Flash. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 9 years, 1 month ago. Active 9 years, 1 month ago. Viewed 17k times. What am I doing wrong? Cheers :. Improve this question. You might take a look here: stackoverflow. Seems to work here jsfiddle. Show 2 more comments. Active Oldest Votes. NOTE: e.

In our scenario, child element is always going to be on top of the parent element. So while every click on the screen is technically click on the body, e.

However, we might have multiple absolutely positioned elements occupying the same area. In this case, the element with higher z-index will be returned. Filed under:. Yeah, thanks for the tips, I was looking for something similar. I'm glad you found it useful. Thanks for sharing this code. Thank You! Thank-you so much for sharing this code..

This is what nobody mentions JavaScript Development. Home Pages About Contact. Create account or Sign in. Watch: site category page. Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3. Click here to edit contents of this page.



0コメント

  • 1000 / 1000