Jump to Real's How-to Main page

Calling Java applets methods using DOM and JavaScript

[IE4 or better]
<OBJECT ID="myApplet" ...>
...
<PARAM NAME="scriptable" value="true">
<PARAM NAME="mayscript" value="true">
...
</OBJECT>

[in your script]
  document.all.myApplet.myMethod()
You use the scriptable parameter if you call Java method from Javascript.
You use the mayscript parameter if you call Javascript function from Java.

This Sun's document describes how Java to Javascript communication works when using the Java Plug-in.


If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]