A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/FormDataEvent/FormDataEvent below:

FormDataEvent: FormDataEvent() constructor - Web APIs

FormDataEvent: FormDataEvent() constructor

Baseline Widely available

The FormDataEvent() constructor creates a new FormDataEvent object.

Syntax
new FormDataEvent(type, formEventInit)
Parameters
type

A string with the name of the event. It is case-sensitive and browsers always set it to formdata.

options

An object that, in addition of the properties defined in Event(), can have the following properties:

formData

A FormData object to pre-populate the FormDataEvent with. This would then be accessed through the FormDataEvent.formData property.

Return value

A new FormDataEvent object.

Examples
const fd = new FormData();
fd.append("test", "test");

const fdEv = new FormDataEvent("formdata", { formData: fd });

for (const value of fdEv.formData.values()) {
  console.log(value);
}
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4