Javascript clear textarea

What do you want to do?

Your button could better just set the textfield in Xojo to “” and than let Xojo send javaScript to browser.