PDA

View Full Version : JavaScript call and accessing applets?


jschrock
04-26-2003, 02:55 PM
I was wondering how a JavaScript can call an applet. Then I need to have my JavaScript access properties of that applet. Is this possible, can JavaScript access the applet object and make calls into it? If all of this is possible, will this work with the JAVA 2 plug-in? If someone could present an example I would greatly appreciate that.

A1ien51
04-26-2003, 09:25 PM
basic idea to change a variable in an Applet

<script>
function displayitem(){
var applet = document.getElementById("AppletID");
applet.AppletVariable = "Your String";
applet.repaint();
}