window.onload = function() { yourFunction(param1, param2); };
function codeAddress() { alert('ok'); } window.onload = codeAddress;