JavaScript Inicio de inicio en la carga
window.onload = function() {
// Your code
};
Code Cat
window.onload = function() {
// Your code
};
<html>
<body onload="loaded();"></body>
<script>
function loaded() {
alert('Page is loaded');
}
</script>
</html>
function codeAddress() {
alert('ok');
}
window.onload = codeAddress;