enlace html confirmar
<a href="delete.php?id=22" onclick="return confirm('Are you sure?')">Link</a>
<!-- or -->
<a href="delete.php?id=22" class="confirmation">Link</a>
<script type="text/javascript">
var elems = document.getElementsByClassName('confirmation');
var confirmIt = function (e) {
if (!confirm('Are you sure?')) e.preventDefault();
};
for (var i = 0, l = elems.length; i < l; i++) {
elems[i].addEventListener('click', confirmIt, false);
}
</script>
Shadow