Defining JavaScript “methods”
Methods can be defined using the
jsFunction_
prefix. Here we define
resetCount
for JavaScript.
public void jsFunction_resetCount() { count = 0; }