Home  >  Article  >  Web Front-end  >  In Js (JavaScript), pop up a yes or no selection box example (example analysis of confirm usage)_javascript skills

In Js (JavaScript), pop up a yes or no selection box example (example analysis of confirm usage)_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:29:211329browse




jQuery.ligerDialog.confirm('Are you sure to delete?', function (confirm) {
if (confirm)
f_delete();
});
======================================== [Centered pop-up message box]
LG.showSuccess("Update successful! The current temporary power will be cleared, please go to the power management module to manage the power!");

================ ======================== [Message box pops up in the lower right corner]
// LG.tip(data);<script><BR> if(confirm("确定要进行此操作吗?"))<BR> {<BR> alert("把确定的事件写到这里吧!");<BR> }<BR> else <BR> {<BR> alert("如果取消,就写一个返回事件吧!");<BR> }<BR></script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn