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?
Added:
I would like to know how to do it because the Btn1Click function can be reached from outside the js file of pas2js.