Search code examples
javascriptxmlxsltdom-eventsxul

onclick event from XML Nodes


My documents are a mixture of XML and HTML tags, where HTML tags are pulled from xhtml namespace and mine are from various namspaces. I want to take user interaction events from XML Nodes of my document. I first tried <do:landingTime xhtml:onclick="fnc">20:48:29.45</do:landingTime> with no Luck. But <xhtml:span onclick="fnc"> works. So is there any solution/tricks/hacks/backdoor to take events from my XML Nodes?


Solution

  • You need to add the click events using Javascript and accept answers to your questions.