window onload javascript
//Use window.onload to to execute JavaScript only after the HTML has loaded
//Syntax:
window.onload = function() {
//JavaScript goes here
}
window onload javascript
//Use window.onload to to execute JavaScript only after the HTML has loaded
//Syntax:
window.onload = function() {
//JavaScript goes here
}
onload javascript function call
window.onload = function() {
yourFunction(param1, param2);
};
//DOMContentLoaded It means when the DOM Objects of the document are fully loaded and seen by JavaScript, also this could have been "click", "focus"...
//function() Anonymous function, will be invoked when the event occurs.
// not work with IE8
document.addEventListener("DOMContentLoaded", function() {
you_function(...);
});
run on load js
function codeAddress() {
alert('ok');
}
window.onload = codeAddress;
javascript onload complete
document.addEventListener('DOMContentLoaded', function() {
// your code here
}, false);
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