Home › Forums › JavaScript › Avoid href on first click › Reply To: Avoid href on first click
November 21, 2017 at 4:02 am
#262833
JeroenR
Participant
You could handle the click event on the anchors then and maybe check for something, an active class for example, and when it matches the class active, do the click result, otherwise return false.
The default handling of href isn’t done by javascript by the way.