I need to call functions in html without a button, calling when a part of html code is executed. with the button I already did, it looks like this:
<input type="button" value="Nome do botão" onclick="nomeDaFuncao();" />
I wanted to call the same event that this button does, but only when a part of the code was executed