Hi Farshad,
I do not understand the treatment:
"P0, P1, P2, ... are event parameters in JS auxiliary statement."
My example:
JSAddEvent ('keypress', ['Key', '%1.charCode'], 'P1.stopEvent()', onkeypress);
procedure TUniZeit24.OnKeyPress(This: TJSObject; EventName: string; Params: TUniStrings);
var c:char;
begin
c := char(strtointdef(string(Params.Values['Key']),0));
if not (c in ['0','1','2','3','4','5','6','7','8','9','-','+',' ']) then begin
// Here i will stop the Keypress Event via stopEvent
end;
// do something with c
end;
Thanks