Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
Java is server-side and Javascript is client-side. So you can't directly call a Java method from Javascript unless it is an applet. If it is indeed an applet, you'd do it like this:
Code:
document.applets['appletName'].setShow(true);
If it's not an applet, you can only execute a server-side code by submitting the form.