Javascript click element

There is a translucent overlay div covering the document, which is destroyed when clicked, but I need to somehow trigger the onlick events of the element under the overlay at the same time. Is there a way to click on certain coordinates using JS or to define a base element having absolute positions x and y? Thanks.

+5
source share
2 answers

Nick sent the link in a wonderful answer on how to get elements by x and y but, unfortunately, this is a comment, so I can not accept it :(

+4
source

If you can find out what an element specified by coordinates is, you can always start the onclick handler yourself using jQuery using the .click () function.

+1
source

All Articles