js tag onload code example
Example 1: run on load js
function codeAddress() {
alert('ok');
}
window.onload = codeAddress;
Example 2: javascript onload
<body onload="myFunction()">
function codeAddress() {
alert('ok');
}
window.onload = codeAddress;
<body onload="myFunction()">