Sending message from Java applet to web page via jQuery

To incorporate Java applets into web applications, there can be a need for Java applets to send messages to the web page which they are embedded on.

This is a demonstration of how to do so.

Message from applet:

The applet

You have to activate Java in order to view this proof of concept