javascript when loaded code example
Example 1: js on page loaded
window.onload = function() {
yourFunction(param1, param2);
};
Example 2: run on load js
function codeAddress() {
alert('ok');
}
window.onload = codeAddress;
window.onload = function() {
yourFunction(param1, param2);
};
function codeAddress() {
alert('ok');
}
window.onload = codeAddress;