- I want run some javascript functions on page load, which ways are exist and which one is better ?
- can i call more than one function in
<body onclick="my function();">?
I want run some javascript functions on page load, which ways are exist and
Share
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:
Then, in a
<script>tag in the<head>have your function call all your other functions: