FormData

· rrees's blog


FormData is one of the the amazing additions to the standard browser API that I don't see enough people talking about.

I most use it for grabbing the content of forms but you can also use it construct URL parameters or form bodies for fetch.

Note that the decoding feature on the event will only work with a Submit event, not a Click one.