javascript start function on load
window.onload = function() {
// Your code
};
javascript start function on load
window.onload = function() {
// Your code
};
javascript - How to execute a function when page has fully loaded?
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!") })
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us