onclick enable and disable button code example Example: disable onclick pointer-events: none; cursor: default;