how to make my html element not participate in elementFromPoint
up vote
0
down vote
favorite
I am working on a testing project. I am trying to use the document.elementFromPoint(x, y) to get elements for testing. However, I have a use-case where I dont want certain elements to be findable using the elementFromPoint. Is there any attribute that I can change to achieve this
javascript html
add a comment |
up vote
0
down vote
favorite
I am working on a testing project. I am trying to use the document.elementFromPoint(x, y) to get elements for testing. However, I have a use-case where I dont want certain elements to be findable using the elementFromPoint. Is there any attribute that I can change to achieve this
javascript html
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am working on a testing project. I am trying to use the document.elementFromPoint(x, y) to get elements for testing. However, I have a use-case where I dont want certain elements to be findable using the elementFromPoint. Is there any attribute that I can change to achieve this
javascript html
I am working on a testing project. I am trying to use the document.elementFromPoint(x, y) to get elements for testing. However, I have a use-case where I dont want certain elements to be findable using the elementFromPoint. Is there any attribute that I can change to achieve this
javascript html
javascript html
asked Nov 9 at 4:26
Vikram Mohan
1
1
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
Referring to MDN you can use the CSS rule pointer-events: none
to achieve this.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
Referring to MDN you can use the CSS rule pointer-events: none
to achieve this.
add a comment |
up vote
2
down vote
Referring to MDN you can use the CSS rule pointer-events: none
to achieve this.
add a comment |
up vote
2
down vote
up vote
2
down vote
Referring to MDN you can use the CSS rule pointer-events: none
to achieve this.
Referring to MDN you can use the CSS rule pointer-events: none
to achieve this.
edited Nov 14 at 20:52
marc_s
567k12810971248
567k12810971248
answered Nov 9 at 4:38
Coli
367213
367213
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53219873%2fhow-to-make-my-html-element-not-participate-in-elementfrompoint%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown