A problem of onload and onresize in Chrome's BOM event

first code
window.onload = function () {

...//

}

window.onresize = function () {

...//

}

second code
function checkInBL () {

...//

}

window.onload = checkInBL ();

window.onresize = checkInBL ();

the first piece of code is completely normal, and the second piece of code can be triggered normally only by onload, but not by onresize. Why?

Apr.07,2021

window.onload = checkInBL;
window.onresize = checkInBL;

in the first section of code, you assign both window.onload and onresize functions. In the second section of code, you assign the return value of checkInBL after the function is called (God knows what you return). I guess you want to set it to checkInBL directly.

window.onload = checkInBL;
window.onresize = checkInBL;
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b307b7-40d5c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b307b7-40d5c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?