2 ms·
Pretty sure type="submit" just means that clicking the button triggers form submit (as opposed to a button without type="submit" that woudn't submit the form).
by palmer_fox 3y ago
Pretty sure type="submit" just means that clicking the button triggers form submit (as opposed to a button without type="submit" that woudn't submit the form). Submitting the form reloads the page, there is no way to repevent that without JS.