javascript document on ready event code example
Example 1: dom ready js
document.addEventListener("DOMContentLoaded", function() {
// code
});
Example 2: javascript document ready
window.onload = function() {
};
document.addEventListener("DOMContentLoaded", function() {
// code
});
window.onload = function() {
};