how to have it respond after clicking a text or image

how to have it respond after clicking a text or image on the page