$.messager.confirm('Confirm', 'Are you sure to confirm this confirmation?', function(r){ if (r){ // OK click you mean should be here }});