function del(url) { if (confirm('Confirm delete')) { location.href=url } }