Pointer events

Return to article

In this demo you shouldn't be able to click the links. The js version is using event.preventDefault() and the css version is using pointer-events: none; You can read about pointer events more here.

JavaScript Version

CSS Version