简体   繁体   English

我可以关闭 javascript 代码中的确认框吗

[英]Can i close confirm box in javascript code

I need to close confirm box after some timeout.我需要在超时后关闭确认框。 So can i do that?那我可以这样做吗? If we can;t do this then I like to use jquery dialogue.如果我们不能这样做,那么我喜欢使用 jquery 对话。 Can we make that dialogue as similar to confirm box?我们可以使该对话类似于确认框吗?

No, you can't, the user is the only one allowed to interact with the built in confirmation.不,你不能,用户是唯一允许与内置确认交互的人。 Doing one with jQuery isn't too bad though:用 jQuery 做一个也不错:

http://jqueryui.com/demos/dialog/#modal-confirmation http://jqueryui.com/demos/dialog/#modal-confirmation

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM