2
I am calling the following function inside the page:
window.onload = function() {
acess();
}
function acess() {
decision = confirm("Deseja realmente excluir o servidor cadastrado abaixo?");
if (decision) {
window.location.replace("fin.del.cad.php");
} else {
history.back();
}
}
However, Confirm appears and the page is empty loading infinitely until I click on it.
I would like Confirm and/or Alert after page loading and not before. I tried some options I saw in other forums and it didn’t work out so well.
You can leave too
window.onload = acess;
and reverse order - leave access before onload.– BrTkCa
Didn’t work :(
– Geraldão de Rívia