I want to run a function when the page loads, but I don't want to declare it in the body tag.
Code:
<body onload="thisfunc();">
Instead, I'm using window.onload to process it directly in the script. Now, I know that when you call a function with window.onload, you don't use the parentheses, so that the script runs the function, instead of assigining it.
But what if you have a function with arguments? How do you call it with window.onload?