79745751

Date: 2025-08-25 12:34:32
Score: 1.5
Natty:
Report link

For me, the answer was I don't want the button to send the form at all, and this helped me:

https://stackoverflow.com/a/3315016/5057078

Text of the answer:

The default value for the type attribute of button elements is "submit". Set it to type="button" to produce a button that doesn't submit the form.

<button type="button">Submit</button>

In the words of the HTML Standard: "Does nothing."

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Brambor