Hi
I created a java applet that is loaded in a HTML page containing Javascript (to interact with the applet).
I would like to initialize the variables of my applet and use the <PARAM> tag to customize the applet variables from the side of the HTML page.
For example : on the java class
in HTML page :
But this does not work .. thanks if you know how to do
I created a java applet that is loaded in a HTML page containing Javascript (to interact with the applet).
I would like to initialize the variables of my applet and use the <PARAM> tag to customize the applet variables from the side of the HTML page.
For example : on the java class
Code:
public class Test extends Applet {
public int var;
}
in HTML page :
Code:
<APPLET name="Test" width="1" height="1" code="Test.class" codebase="." mayscript="mayscript">
<PARAM name="var" value="js_var">
</APPLET>
<SCRIPT LANGUAGE="javascript">
document.Test.js_var = 3;
</SCRIPT>
But this does not work .. thanks if you know how to do