Модераторы: healix, BMB, Модераторы форума
Викторович писал(а):onClick="if(!confirm('Удалить?')); act.value='del'"
if(confirm('Are you sure?')) {
$.post('yoururl', {act: 'del'}).done(function() {
window.close();
});
}
<button onclick="if(confirm('Are you sure?')){$.post('yoururl', {act: 'del'}).done(function() {window.close()})}">Удалить</button>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
Зарегистрированные пользователи: Google [Bot]