If you use the Form
tag, your page will be submitted to the server. Just remove it. You don't need it, except you want to submit your form to the server this way. Normally you don't.
If you need the form tag in any way. Just make the button <button type="button" ></button>
to signify it that it's not a submit button.
@michaelvolz , @RyoukoKonpaku Thank you!
It's working now!
Most helpful comment
If you need the form tag in any way. Just make the button
<button type="button" ></button>
to signify it that it's not a submit button.