I'm trying to choose the background color of a div
through a script.
That is, my goal is that as soon as the page appears it has already run the script and the color that the script selected has appeared.
My question for now is:
<body onload="funcaoquemudaacor()">
Apparently, the onload parameter does not seem to me to be the right one, and is not working.
Is that my mistake? Solutions?