Public Access
5
0

modifier script pour erreur si element inexistant

This commit is contained in:
2025-11-24 21:35:06 -05:00
parent e37ae8de5c
commit c719c87225
2 changed files with 4 additions and 2 deletions

View File

@@ -21,6 +21,8 @@
display: block;
background-color: yellow;
font-weight: bold;
color: black;
}
body {
min-height: 100vh;

View File

@@ -1,7 +1,7 @@
window.onload = function () {
setTimeout(function () {
document.getElementById('message').innerHTML =
'The page has finished loading! After 2 second';
/* document.getElementById('message').innerHTML =
'The page has finished loading! After 2 second'; */
document.getElementById("updateDate").setAttribute("id", "updateDateV");
}, 2000);
};