Home > Web Front-end > JS Tutorial > 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
Release: 2016-05-16 17:29:21
Original
1404 people have browsed it




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>
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template