CSS | pointer-events Property
This property is used to specify whether element show to pointer events and whether not show on the pointer.
Syntax:
pointer-events: auto|none;
Property values:
- auto: This property is used to specify that an element must react to pointer events.
Syntax:
pointer-events:auto;
Example:
<!DOCTYPE html><html><head><title>CSS | pointer-events Property</title><style>p.geeks {pointer-events: auto;}h1, h2 {color:green;}body {text-align:center;}</style></head><body><CENTER><h1>GeeksForGeeks</h1><h2>pointer-events:auto;</h2><pclass="geeks"><ahref="#">GeeksforGeeks</P></A></body></html>chevron_rightfilter_noneOutput:

- none: This property is used to specify that an element does not react to pointer-events.
Syntax:
pointer-events:none;
Example:
<!DOCTYPE html><html><head><title>CSS | pointer-events Property</title><style>p.geeks {pointer-events: none;}h1, h2 {color:green;}body {text-align:center;}</style></head><body><h1>GeeksForGeeks</h1><h2>pointer-events:none;</h2><pclass="geeks"><ahref="#">GeeksforGeeks</p></a></body></html>chevron_rightfilter_noneOutput:

Supported Browsers: The browsers supported by pointer-events Property are listed below:
- Google Chrome 2.0
- INternet Eplorer 11.0
- Firefoc 3.6
- Opera 9.0
- Safari 4.0
Recommended Posts:
- CSS | transition-property Property
- CSS | nav-right property
- CSS | right Property
- CSS | nav-down property
- CSS | nav-up property
- CSS | top Property
- CSS | all Property
- CSS | border-right Property
- CSS | perspective Property
- CSS | resize Property
- CSS | clip Property
- CSS | align-self Property
- CSS overflow-y Property
- CSS | transition Property
- CSS | nav-index property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



