I have a webpage with some links and I need to catch the jQuery click-click event. The task completed well, but then the problem arises: if the user clicks the link when javascript does not finish the download, it links to another page (which is an error).
I tried to find a way to disable the link before the page was loading, but the best solution now is that I have to add onclick="return false;"to my links, which is not very elegant. Is there a better solution?
Thanks for any help
source
share