javascrip on document loaded code example
Example 1: js on page loaded
window.onload = function() {
yourFunction(param1, param2);
};
Example 2: document load javascript
window.onload = function() {
// Code here
}
window.onload = function() {
yourFunction(param1, param2);
};
window.onload = function() {
// Code here
}