How to close java Applet through code

后端 未结 4 1930
失恋的感觉
失恋的感觉 2021-01-22 02:52

I am developing a java applet. I want it to be closed by the code. I have used System.Exit(0) but it is not working. Is there any other method to achieve this?

4条回答
  •  悲哀的现实
    2021-01-22 03:16

    Try to remove java applet code by javascript. Example your html:

    
    

    your javascript code:

    function clickButton(){
         var SS = document.getElementById("appletCode");
        SS.innerHTML = "";
    }
    

    提交回复
    热议问题