You can remove the DOM object or set its CSS property to hidden.
jQuery("#applet").remove();
or
jQuery("#applet").hide();
You can also kill the applet :
<script> document.MyApplet.killApplet(); </script> public void killApplet() { AccessController.doPrivileged(new PrivilegedAction() { public Void run() {
However, this stops the applet and throws JS errors in IE6
You can also set the applet size to (1,1) and set it when done.
jQuery("#applet").height(1).width(1);
source share