1 2 3 4 5
function confirmSubmit(event, element) { if (window.confirm('Confirmer ? ' + element) === false) { event.preventDefault(); } }