开发者

Detecting Chrome plug-in warning

开发者 https://www.devze.com 2023-04-03 16:58 出处:网络
Is there any way to detect when Chrome shows the yellow bar at the top, asking the user to allow Java/Flash/Quicktime/whatever to run?

Is there any way to detect when Chrome shows the yellow bar at the top, asking the user to allow Java/Flash/Quicktime/whatever to run?

I'm developing a Javascript app that includes a small Java applet, an开发者_运维百科d I want to be able to prompt the user to click the "Always Allow" button.

Right now I'm using a timeout to prompt the user if the applet isn't running within X seconds, but that's really hacky and unreliable solution.

Any suggestions would be appreciated.


The applet tag doesn't expose any events - what you could do is dynamically add the applet tag to your page using jQuery after you've shown the user a dialog to "Always Allow" (e.g. based on a cookie).

0

精彩评论

暂无评论...
验证码 换一张
取 消