I am working on SVG script
there are getElementById or getElementsByTagName
but I can’t find any method to get elements by position
such as get the elements whose position is x=10,y=10.
is there any way I can achieve this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s a working example that changes the background colour of the element at the specified point.
Note that if the specified point is outside the visible area of the document,
elementFromPointwill returnnull.