开发者

Detecting Chrome plug-in warning

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜