Rename ex2 to ex2 Page onload

This commit is contained in:
LSvekis
2021-06-17 18:01:00 -04:00
committed by GitHub
parent 6a3975e99b
commit e40923e7d7
+20
View File
@@ -0,0 +1,20 @@
<!doctype html>
<html>
<head>
<title>JS Tester</title>
</head>
<body>   
<script>       
document.addEventListener("DOMContentLoaded", (e) => {
message("Document ready", e);
});
window.onload = (e) => {
message("Window ready", e);
}
function message(val, event) {
console.log(event);
console.log(val);
}
</script>
</body>
</html>