I have an input type=\"button\"
Maybe better to make an anchor with DeleteJob url instead of button?
" onclick="return DeleteJob()">Löschen
and use your javascript you wrote already:
function DeleteJob() {
if (confirm("Do you really want to delete selected job/s?"))
return true;
else
return false;
}
So if function return true - you will be redirected. If function return false - you still stay on the page.