<form onsubmit="return confirm('borrar?')">
<a href="?borrar=id" onclick="return confirm('borrar?')">