Use addEventListener

Use addEventListener and attachEvent to catch all links when clicked