开发者

trigger login window

开发者 https://www.devze.com 2023-03-03 15:17 出处:网络
I do a JQuery trigger on a login button to auto login. It works fine in IE but in Firefox i get this login window.

trigger login window

I do a JQuery trigger on a login button to auto login. It works fine in IE but in Firefox i get this login window. My question is:

Can I trigger the click on OK with jQuery?

 j开发者_JS百科Query(document).ready(function(){
              jQuery('.centerButton').trigger('click');
    });


No. It is browser chrome and not part of the DOM so it isn't accessible.


You can not interact with windowed elements [prompts, alerts, etc] with JavaScript.

0

精彩评论

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