disable on click after the click code example Example: disable onclick pointer-events: none; cursor: default;