html onclick on disabled element code example Example: disable onclick pointer-events: none; cursor: default;