javascript on page fully loaded code example
Example 1: content of page fully loaded javascript
document.addEventListener('DOMContentLoaded', (event) => {
console.log('DOM completely loaded and analyzed');
});
Example 2: js on page loaded
window.onload = function() {
yourFunction(param1, param2);
};