Skip to content

Commit b9b7252

Browse files
authored
Update node-properties.md
1 parent 9dcb643 commit b9b7252

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

node-properties.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,3 +725,10 @@ alert(HTMLDocument.prototype.__proto__.__proto__.constructor.name); // Node
725725

726726
<p>We also could examine the object using <mark>console.dir(document)</mark> and see
727727
these names by opening <mark>__proto__</mark>. The console takes them from <mark>constructor</mark> internally.</p>
728+
729+
<pre>
730+
document.addEventListener("DOMContentLoaded", () => {
731+
console.log("The DOM is fully loaded and parsed");
732+
// Your code here
733+
});
734+
</pre>

0 commit comments

Comments
 (0)