The three ways of sending form data through JavaScript

CC: @chrisdavidmills

I’m reading this article. It says there are 3 ways to send form data, the two being

  1. Building an XMLHttpRequest manually
  2. Using XMLHttpRequest and the FormData object

So what’s the third one? Am I missing something, or is something missing from the article?

@bb8 there are two different ways of doing it with a FormData object — that section has two subsections.

I’ve updated the page to list them all under https://developer.mozilla.org/en-US/docs/Learn/Forms/Sending_forms_through_JavaScript#Sending_form_data

@chrisdavidmills that’s clearer now, thanks!