Field text substring to mimic hotword in XML

I have a text field to which I have added html span tags. They are used to provide object IDs for substrings of the text so the substrings can be styled dynamically. Now I need certain other substrings of that text to be clickable, like hotwords. In the post, "Events supported in XML documents", I saw how a click event can be defined in XML for a field.
I would like to do this for my substrings but have not had any luck. I tried using ID attributes in both span tags and anchor tags but I can't get either of them to accept a click. I think I might need to provide an href attribute to the anchor but I don't know what the target would need to be. Is there a way to achieve this kind of functionality?
Thanks, Andy
I would like to do this for my substrings but have not had any luck. I tried using ID attributes in both span tags and anchor tags but I can't get either of them to accept a click. I think I might need to provide an href attribute to the anchor but I don't know what the target would need to be. Is there a way to achieve this kind of functionality?
Thanks, Andy