how to disable an onclick code example Example: disable onclick pointer-events: none; cursor: default;