How to wait for a Java applet to finish loading on Safari?

前端 未结 3 1241
温柔的废话
温柔的废话 2021-01-12 15:38

This doesn\'t work in Safari:






        
      
      
      
3条回答
  •  走了就别回头了
    2021-01-12 16:14

    I use a timer that resets and keeps checking a number of times before it gives up.

                   
    

    Note that this assumes that the applet will run in Safari. I've had some instances where an applet required Java 6 that simply hangs Safari even with code similar to the above. I chose to do browser detection on the server and redirect the user to an error page when the browser doesn't support the applet.

提交回复
热议问题