disable anchor tag javascript code example Example: html disable anchor link a.isDisabled { pointer-events: none; }