בדקתי ככה:
PHP קוד:
<script type="text/javascript">
<!--
function confirmation(id) {
var answer = confirm("האם אתה בטוח שברצונך למחוק את המאמר?")
if (answer){
window.location = 'index.php?id=' + id + '&act=del';
}
else
{
alert("המאמר לא נמחק")
}
}
//-->
</script>
<a href="#" onClick="confirmation(10)" title="מחק את המאמר">מחק</a>
וזה עובד טוב..