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).
精彩评论