I have a Java applet in an HTML page. I need the applet to call a specific Javascript function to notify the HTML page of some events.
I am currently calling a JavaScript function:
getAppletContext().showDocument(new URL("javascript:window.notifyEvent("+msisdn+")"));
I define a valid function inside the HTML, but when the applet really calls it, I get an Uncaught ReferenceError: notifyEvent is not defined
error.
Where do I need to define a javascript function for an applet to be able to call it?
Thanks!
source share