update: prevent user refresh
This commit is contained in:
parent
4e7a541795
commit
7ee7676d6d
1 changed files with 5 additions and 1 deletions
|
@ -21,10 +21,14 @@
|
|||
let tmp = document.createTextNode(elem);
|
||||
let newP = document.createElement("p");
|
||||
newP.appendChild(tmp);
|
||||
document.getElementById("my-list").appendChild(newP)
|
||||
document.getElementById("my-list").appendChild(newP);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
window.onbeforeunload = function() {
|
||||
return "Vous perdrez tous les artistes trouvés en rafraichissant la page."
|
||||
}
|
||||
setInterval(test, 3000);
|
||||
</script>
|
||||
<html>
|
||||
|
|
Loading…
Reference in a new issue