I need to know how to call js functions because I don't know how to do it but it's different from onchange or onclick. The only documentation I have found has been for no answer to my question.
I need to know how to call js functions because I don't know how to do it but it's different from onchange or onclick. The only documentation I have found has been for no answer to my question.
If possible, using the event
onload
, it will be executed when the page is finished loading, example:I remain attentive to your comments or concerns, Greetings! ;))
To load the function when loading the page you only have to use the onload method of javascrpt, I leave you the example:
Alternatively to the answers given, you can use a tag
<script>
before closing the</body>
.