run js when page fully loaded code example Example: js on page loaded window.onload = function() { yourFunction(param1, param2); };