[Pas2js] Call a function from html

Gabriele Cappelletto cappellettogabriele at yahoo.it
Tue Sep 3 12:24:21 CEST 2019


Hello
I would like to find a way to call a function written with pas2js from
html code (do not define onclick from pas2js, but call from html)

example
html
?<input type="button" class="form-control" id="btn3" value="direct mode"
onclick="Btn1Click();"/>

and the Btn1Click function write it with pas2js.
example
function Btn1Click(aEvent: TJSMouseEvent): boolean;
begin
? //?
end;

How can I do?



More information about the Pas2js mailing list