Handle click events on elements inside anchor tags.