Exercise 11.3

This commit is contained in:
Karan 2021-11-24 22:19:17 +05:30 committed by GitHub
parent 8e9e6edbd1
commit 36059d206e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
Chapter 11/Exercise 11.3 Normal file
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>