HTML table on htmlviewer

I have an html table on an html viewer placed on a web dialog and need to get the content of a clicked cell and put it on a textfield on my Xojo web app. I found the way to get the clicked cell content with Javascript but have no clue on how to put it on the textfield of my app.

Create a DOM element.

[code]var x = document.createElement(‘div’)

x.addEventListener(‘click’, function() {
parent.document.location.hash = “any text”;


Next pick up the Session.HashTagChanged event and get the Hashtag of the Session object. It contains “any text”

Trick learned from @Michel Bujardet

Thanks. That certainly worked!