The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Avoid href on first click Reply To: Avoid href on first click


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.