I have a program and i need to get the data from java applet into a html file. I read that it was possible to use javascript to get this info as the applet was just another object. So i made a function to return a value and a method to change value of an element in the applet. public void testfunc() { statusbar.setText("test called."); } Code (markup): And called it using Javascript as <body> <applet name="fileapplet" code="org.me.filechoose.FileChoose" archive="FileChoose.jar" width="400" height="400" MAYSCRIPT> <script type="text/javascript"> <!-- document.fileapplet.testfunc(); //--> </script> Code (markup): Firebug shows this error: document.fileapplet.testfunc is not a function [Break on this error] document.fileapplet.testfunc(); Code (markup):