<body onclick="my function();"> ?First, you do not want to force the user to click on the page in order for the functions to execute.
The most basic way to do is:
<body onload="yourFunction();">
Then, in a <script> tag in the <head> have your function call all your other functions:
function yourFunction(){
function1();
function2();
// some other code not in a function...
//...
}
<body onload="yourFunction1();yourFunction2();">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With