js window relaod code example
Example 1: refresh window js
window.location.reload();
Example 2: js document onload
//use
window.onload=()=>{};
Example 3: javascript onload
<body onload="myFunction()">
window.location.reload();
//use
window.onload=()=>{};
<body onload="myFunction()">