Grabbing attribute or href on a click event

Sorry everyone but I submitted this to the wrong subject. I will resubmit it in the correct forum/subject.