A página fica recarregando automaticamente #2346
Unanswered
alissondias99
asked this question in
Perguntas e Respostas
Replies: 1 comment
-
Dica, veja se precisa de mais explicações: // use um form
<form onSubmit="enviarDados($event)">
<input />
{/* button type=submit */}
<button type="submit">Enviar</button>
</form>
function enviarDados(event) {
event.preventDefault()
// restante do código normal
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Boa tarde, pessoal.
Eu estou fazendo a parte Javascript de um projetinho bem simples aqui. Mas por algum motivo a página fica recarregando sozinha quando eu clico no botão.
Se alguém puder dar uma ajuda agradeço.
Parte HTML:
Parte javascript:

Ignorem o "S", saiu sem querer na hora print.
Beta Was this translation helpful? Give feedback.
All reactions