Is it possible to pass a function/callback from javascript to a java applet?
For example i have an applet with a button that when pressed it will call the passed js callback
function onCommand() {alert('Button pressed from applet');}
applet.onCommand(onCommand);