I have a link that needs to be disabled once I click on it until the page reloads again. The main purpose is to limit the user from clicking on the link multiple times.
Below is my link:
<a href="/User/faces/profile.xhtml?id=20521&itemNo=-1" onclick="this.disabled=true;document.body.style.cursor='wait';" style="padding: 10px 5px;">Profile</a>
This works fine on ie11, but not on chrome or iPad.
Is there anything that I am missing? Any help or hint is appreciated.
preventDefault()and, modify the element, and then redirect to the profile.xhml page programmatically.