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 .
buttonthetypeattribute defaults tosubmit. Have you changed thetype? - Shallow