假设 你的applet有一个方法setName(String name) and getName()
在页面中 applet的id为myapp
则在你的javascript中可以这样用
document.myapp.setName("hello");
var name=document.myapp.getName();
在页面中 applet的id为myapp
则在你的javascript中可以这样用
document.myapp.setName("hello");
var name=document.myapp.getName();
applet:
getDocument();
js:
ID号访问;
OK??