简体   繁体   中英

web-browser addon and java applets?

I have an online service which uses a java applet to perform client side task but the user must left open the webpage hosting the applet to let it work, my question is -

if I run this applet locally via an web-browser addon can the user close the webpage and the applet would continue to run in background ?

Also, will launching the applet locally still generate the initial launch security warning ?

if I run this applet locally via an web-browser addon can the user close the webpage and the applet would continue to run in background ?

No. When a page is closed, the browser/JRE will call the close() then stop() methods. When it suits them, the JVM will be stopped. That might occur 30-60 seconds after the last applet (in that JVM) stops.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM