That’s called load
. It came waaaaay before DOM ready was around, and DOM ready was actually created for the exact reason that load
waited on images.
window.addEventListener('load', function () {
alert("It's loaded!")
})
More Related Contents:
- JavaScript binding of global result is undefined [closed]
- How can I force clients to refresh JavaScript files?
- Create an array with same element repeated multiple times
- Modifying location.hash without page scrolling
- How to force a script reload and re-execute?
- How to pass parameters to a Script tag?
- What is the list of possible values for navigator.platform as of today? [closed]
- Flask – Calling python function on button OnClick event
- Hide div after a few seconds
- Understanding async/await on NodeJS
- How to prevent page from reloading after form submit – JQuery
- Adding images to an HTML document with JavaScript
- How does the way in which a JavaScript event handler is assigned affect its execution?
- Javascript – remove an array item by value [duplicate]
- Is setInterval CPU intensive?
- Google Sheets add-on: Set anonymous/dynamic functions to Menu using Google App Script
- prevent mobile default keyboard when focusing an from showing
- Get translate3d values of a div?
- In Firebase when using push() How do I get the unique ID and store in my database [duplicate]
- Whats the difference between JS Number.MAX_SAFE_INTEGER and MAX_VALUE?
- How to solve Uncaught RangeError when download large size json
- When do I need to use hasOwnProperty()?
- jQuery 3 slim ajax basic example
- Returning value from confirmation dialog using JQuery UI dialog
- How to make browser full screen using F11 key event through JavaScript [duplicate]
- A non-nested animation sequence in jQuery?
- Can’t pass arguments to chrome.declarativeContent.SetIcon
- Undestanding double bracket operation in Javascript
- Preg_match to regex equivalent expression to match any Unicode letters
- How to check if hex color is “too black”?