window.onload = function() { // Your code };
function codeAddress() { alert('ok'); } window.onload = codeAddress;