3
Hello, the only way I know how to call a javascript function in html is by onclick, but my html is not a button to click, I wonder if there is another way to show a function when it is called.
ex: onload -> para quando a tela carregar
onclick -> quando clicarem no elemento
has some that just shows?
technically no, just that it appears... like the screen initialized it is there, but as the code is right in the middle.. I don’t know if I can use onload..
– Alis
What do you mean "the code is right in the middle"? You can [Edit] and show the relevant chunk of your code?
– bfavaretto
What you want is to call a function when loading the page?
– bfavaretto
it’s in the middle, inside Ivs... the entire code is very extensive and what I need is right in the middle of it..
– Alis
if it is a function, just run it like this:
exibirDados()
– Rafael Augusto
Really? It really works... I don’t need to put into anything?
– Alis
just need to be inside the script tag:
<script>minhaFuncao();</script>
– KaduAmaral