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; display: block;
background-color: yellow; background-color: yellow;
font-weight: bold; font-weight: bold;
color: black;
} }
body { body {
min-height: 100vh; min-height: 100vh;

View File

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