window.addEventListener("load", (event) => {
console.log("page is fully loaded");
});Window: load event / notebook
Window: load event
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
window.onload = (event) => {
console.log("page is fully loaded");
};<div class="controls">
<button id="reload" type="button">Reload</button>
</div>
<div class="event-log">
<label for="eventLog">Event log:</label>
<textarea
readonly
class="event-log-contents"
rows="8"
cols="30"
id="eventLog"></textarea>
</div>