HTML based trigger of Pascal function?

For some reason I don't have the Demo folder in my install so I can't look up how it's done there.


I'm using a grid where I'm dynamically injecting HTML into the HTML field of each item.

How do I go about writing html/js so that it triggers Pascal function when clicked?
We have sent you a link to the demos.
If this concerns a HTML insert you insert and you want to hook to a JavaScript event of this HTML element, you can use JSHTMLElement.addEventListener('jseventname', methodpointer);

Thanks Bruno, I'll give that a try