How to Disable Links on Certain Events