call applet method with javascript

my html - code:

<APPLET NAME="Mail" ... ... ></APPLET>

<form action="javascript:document.applets("Mail").test("Execute JAVA Applet Function")">

<input type="submit" value="Execute Applet Function">

</form>

my applet code:

public void test(String t)

{System.out.println("executing test()");

teststr = t;

repaint();

}

in the paint() method i draw the teststr with Graphics.drawString - but nothing happens...

any suggestions?

thx

[565 byte] By [scorpion9] at [2007-9-26 5:09:03]
# 1
Hi, Go to the following link: http://developer.netscape.com/tech/javascript/index.htmlSelect LiveConnect TechNote
kirkess at 2007-6-29 19:09:19 > top of Java-index,Archived Forums,Java Programming...
# 2
Directly calling a Java Applet's public method from withinJavaScript is made possible by LiveConnect which is not implemented by Internet Explorer as of yet. LiveConnect is only available on Netscape navigator at this time.
gduque02 at 2007-6-29 19:09:19 > top of Java-index,Archived Forums,Java Programming...