There is a form in the form of a bunch of <textarea> at the end of the form is <input type="submit"> . Added the <button> , but for some reason, when you click on this button, submit is called ... i.e. trying to submit a form. tried onclick , formaction .

  • show the code please - Bogdan Gudyma
  • onclick = "return false;" - ilyaplot
  • one
    For button the type attribute defaults to submit . Have you changed the type ? - Shallow

1 answer 1

You should read about the Type attribute. Here is an example of a regular button:

 <button type="button">Обычная кнопка</button> 

Official documentation