form with button inside that doesnt sbmit code example Example: prevent button from submitting form function myFunc(e){ e.preventDefault(); }