funkcja uruchamiania JavaScript na obciążeniu
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;