Log detected link on mousedown and click events