How can I chec开发者_JS百科k if user click yes (trust my application) for my signed Application from javascript ?
var check = confirm("Do you trust this app?");
if (check) { //user clicked ok
//do whatever
}
If your application is on a website, you could place the <applet>
tag within a <div id="app" style="none">
. Then you could replace //do whatever
with this:
document.body.getElementById("app").style = 'block';
精彩评论