从您的Java小程序中
// object to allow applet to invoke Javascript methodsprotected static JSObject appletWindowJSObject = null;appletWindowJSObject = JSObject.getWindow(this); //Call your javascript method on the page and pass it something appletWindowJSObject.call("myJavascriptMethod", "This is what I am passing");然后,您可以像往常一样使用javascript来操纵html页面。
声明小程序时,可能还需要包括mayscript参数,不确定是否需要了。



