admin管理员组文章数量:1415652
There is a semitransparent overlay div
covering document which destroys on click, but I need somehow to trigger onlick events of the element beneath overlay at the same time. Is there a way to click on specific coordinates with JS, or maybe determine underlying element having absolute x and y positions? Thanks.
There is a semitransparent overlay div
covering document which destroys on click, but I need somehow to trigger onlick events of the element beneath overlay at the same time. Is there a way to click on specific coordinates with JS, or maybe determine underlying element having absolute x and y positions? Thanks.
- 4 check out this answer to find the element by coordinates, and then trigger onclick on the found element: stackoverflow./questions/590119/… – Nick Commented Jul 16, 2010 at 21:01
- would it be possible when the div element is added, you build a connection of the div element to the element above it. Then when the element above it is clicked, a handler is invoked for the div? – Paul Commented Jul 16, 2010 at 21:07
2 Answers
Reset to default 4Nick has posted a link to awesome answer on how to get elements by x and y but unfortunately it's a ment so I can't accept it. :(
If you can find out what is the element given the coordinates, you can always trigger the onclick handler yourself with jQuery using the .click() function.
本文标签: jqueryJavascript click through elementStack Overflow
版权声明:本文标题:jquery - Javascript click through element - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745159127a2645354.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论